|
|
@ -29,8 +29,12 @@ video, #my_video, .video-js, .vjs-default-skin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<video playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>" id="player" class="video-js vjs-default-skin">
|
|
|
|
<video playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>" id="player"
|
|
|
|
|
|
|
|
<% if autoplay == 1 %>autoplay<% end %>
|
|
|
|
|
|
|
|
<% if controls == 1 %>controls<% end %>
|
|
|
|
|
|
|
|
<% if video_loop == 1 %>loop<% end %>
|
|
|
|
<% if listen %>
|
|
|
|
<% if listen %>
|
|
|
|
|
|
|
|
class="video-js vjs-default-skin">
|
|
|
|
<% audio_streams.each_with_index do |fmt, i| %>
|
|
|
|
<% audio_streams.each_with_index do |fmt, i| %>
|
|
|
|
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>">
|
|
|
|
<source src="<%= fmt["url"] %>" type='<%= fmt["type"] %>' label="<%= fmt["bitrate"] %>k" selected="<%= i == 0 ? true : false %>">
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
@ -44,9 +48,6 @@ video, #my_video, .video-js, .vjs-default-skin
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
preload: "auto",
|
|
|
|
preload: "auto",
|
|
|
|
<% if autoplay == 1 %>autoplay: true, <% end %>
|
|
|
|
|
|
|
|
<% if controls == 1 %>controls: true, <% end %>
|
|
|
|
|
|
|
|
<% if video_loop == 1 %>loop: true, <% end %>
|
|
|
|
|
|
|
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
|
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
|
|
controlBar: {
|
|
|
|
controlBar: {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|