Enable captions when `listen=1`

このコミットが含まれているのは:
Omar Roth 2018-08-06 17:10:22 -05:00
コミット ac12d161b9
2個のファイルの変更10行の追加9行の削除

ファイルの表示

@ -53,10 +53,11 @@ video, #my_video, .video-js, .vjs-default-skin
<% fmt_stream.each_with_index do |fmt, i| %> <% fmt_stream.each_with_index do |fmt, i| %>
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>"> <source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["label"] %>" selected="<%= quality == fmt["label"].split(" - ")[0] %>">
<% end %> <% end %>
<% captions.each do |caption| %> <% end %>
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
label="<%= caption["name"]["simpleText"]%> "> <% captions.each do |caption| %>
<% end %> <track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
label="<%= caption["name"]["simpleText"]%> ">
<% end %> <% end %>
<% end %> <% end %>
</video> </video>

ファイルの表示

@ -64,11 +64,11 @@
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>" <track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
label="<%= caption["name"]["simpleText"]%>" <% if i == 0 %>default<% end %>> label="<%= caption["name"]["simpleText"]%>" <% if i == 0 %>default<% end %>>
<% end %> <% end %>
<% end %>
<% captions.each do |caption| %>
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>" <% captions.each do |caption| %>
label="<%= caption["name"]["simpleText"]%>"> <track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
<% end %> label="<%= caption["name"]["simpleText"]%>">
<% end %> <% end %>
<% end %> <% end %>
</video> </video>