mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-23 01:45:41 +00:00
Add 'autoplay' and 'loop' query params to watch page
This commit is contained in:
@@ -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| %>
|
||||
|
||||
Reference in New Issue
Block a user