Fix title when downloading video

pull/258/head
Omar Roth 2018-11-25 19:01:04 -06:00
rodzic 934c81b02f
commit 0152967d3e
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1,6 +1,8 @@
<<% if params[:listen]%>audio<% else %>video<% end %> style="width:100%" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>"
id="player" class="video-js"
onmouseenter='this["title"]=""'
onmouseenter='this["data-title"]=this["title"];this["title"]=""'
onmouseleave='this["title"]=this["data-title"];this["data-title"]=""'
oncontextmenu='this["title"]=this["data-title"]'
<% if params[:autoplay] %>autoplay<% end %>
<% if params[:video_loop] %>loop<% end %>
<% if params[:controls] %>controls<% end %>>