|
|
@ -2,8 +2,8 @@
|
|
|
|
<%= video.info["title"] + " - " %>
|
|
|
|
<%= video.info["title"] + " - " %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<video id="player" class="video-js" data-setup="{}" style="width:100%" controls>
|
|
|
|
<% if listen == "true" %>
|
|
|
|
<% if listen == "true" %>
|
|
|
|
<audio id="player" class="video-js" data-setup="{}" style="width:100%" controls>
|
|
|
|
<% adaptive_fmts.each do |fmt| %>
|
|
|
|
<% adaptive_fmts.each do |fmt| %>
|
|
|
|
<% url = fmt["url"] %>
|
|
|
|
<% url = fmt["url"] %>
|
|
|
|
<% type = fmt["type"].to_s.split(";")[0] %>
|
|
|
|
<% type = fmt["type"].to_s.split(";")[0] %>
|
|
|
@ -11,12 +11,14 @@
|
|
|
|
<source src="<%= url %>" type="<%= type %>">
|
|
|
|
<source src="<%= url %>" type="<%= type %>">
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
</audio>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<video 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"].split(";")[0] %>">
|
|
|
|
<source src="<%= fmt["url"] %>" type="<%= fmt["type"].split(";")[0] %>">
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</video>
|
|
|
|
</video>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|