Add player title and thumbnail
parent
212ba05047
commit
24fc14ac7a
@ -1,9 +1,7 @@
|
|||||||
<audio id="player" class="video-js" data-setup="{}" style="width:100%;" controls>
|
<audio poster="<%= thumbnail %>" title="<%= video.title%>" id="player" class="video-js" data-setup="{}" style="width:100%;" controls>
|
||||||
<% adaptive_fmts.each do |fmt| %>
|
<% adaptive_fmts.each do |fmt| %>
|
||||||
<% url = fmt["url"]? %>
|
<% if fmt["type"].starts_with?("audio") %>
|
||||||
<% type = fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %>
|
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>'>
|
||||||
<% if type.starts_with?("audio") %>
|
|
||||||
<source src="<%= url %>" type="<%= type %>">
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</audio>
|
</audio>
|
@ -1,5 +1,5 @@
|
|||||||
<video id="player" class="video-js" data-setup="{}" style="width:100%;" controls>
|
<video poster="<%= thumbnail %>" title="<%= video.title%>" id="player" class="video-js" data-setup="{}" style="width:100%;" controls>
|
||||||
<% fmt_stream.each do |fmt| %>
|
<% fmt_stream.each do |fmt| %>
|
||||||
<source src="<%= fmt["url"]? %>" type="<%= fmt["type"]? ? fmt["type"].to_s.split(";")[0] : "" %>">
|
<source src="<%= fmt["url"]? %>" type='<%= fmt["type"]? %>'>
|
||||||
<% end %>
|
<% end %>
|
||||||
</video>
|
</video>
|
Loading…
Reference in New Issue