mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add 'raw' and 'quality' options to embedded videos
This commit is contained in:
parent
b965c8a7a4
commit
ac8fb9d8c8
2 changed files with 23 additions and 0 deletions
|
@ -40,7 +40,11 @@ video, #my_video, .video-js, .vjs-default-skin
|
|||
<% end %>
|
||||
<% else %>
|
||||
<% fmt_stream.each_with_index do |fmt, i| %>
|
||||
<% if quality != "hd720" %>
|
||||
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>">
|
||||
<% else %>
|
||||
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= i == 0 ? true : false %>">
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</video>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue