Add 'autoplay' and 'loop' query params to watch page

This commit is contained in:
Omar Roth 2018-07-20 15:14:15 -05:00
parent fff0a25c17
commit 56e35def8a
2 changed files with 16 additions and 4 deletions

View file

@ -12,10 +12,8 @@
<div class="h-box">
<video style="width:100%" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>"
id="player" class="video-js vjs-16-9" data-setup="{}"
<% if preferences %>
<% if preferences.autoplay %>autoplay<% end %>
<% if preferences.video_loop %>loop<% end %>
<% end %>
<% if autoplay %>autoplay<% end %>
<% if video_loop %>loop<% end %>
controls>
<% if listen %>
<% audio_streams.each_with_index do |fmt, i| %>