Add preferred captions

This commit is contained in:
Omar Roth
2018-08-06 13:23:36 -05:00
parent fe5142753c
commit ca7c376874
6 changed files with 158 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ video, #my_video, .video-js, .vjs-default-skin
<% end %>
<% captions.each do |caption| %>
<track kind="captions" src="/api/v1/captions/<%= video.id %>?label=<%= caption["name"]["simpleText"] %>"
srclang="<%= caption["languageCode"] %>" label="<%= caption["name"]["simpleText"]%> ">
label="<%= caption["name"]["simpleText"]%> ">
<% end %>
<% end %>
<% end %>