|
|
|
@ -138,11 +138,12 @@ var player = videojs('player', options, function() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.share(shareOptions);
|
|
|
|
|
player.share(shareOptions);
|
|
|
|
|
|
|
|
|
|
<% if video_start > 0 || video_end > 0 %>
|
|
|
|
|
this.markers({
|
|
|
|
|
player.markers({
|
|
|
|
|
onMarkerReached: function(marker) {
|
|
|
|
|
if (marker.text === 'End') {
|
|
|
|
|
if (player.loop()) {
|
|
|
|
@ -162,7 +163,7 @@ var player = videojs('player', options, function() {
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.currentTime(<%= video_start %>);
|
|
|
|
|
player.currentTime(<%= video_start %>);
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% if !listen %>
|
|
|
|
@ -178,10 +179,9 @@ var player = videojs('player', options, function() {
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% if preferences %>
|
|
|
|
|
this.volume(<%= preferences.volume.to_f / 100 %>);
|
|
|
|
|
this.playbackRate(<%= preferences.speed %>);
|
|
|
|
|
player.volume(<%= preferences.volume.to_f / 100 %>);
|
|
|
|
|
player.playbackRate(<%= preferences.speed %>);
|
|
|
|
|
<% end %>
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function toggle(target) {
|
|
|
|
|
body = target.parentNode.parentNode.children[1];
|
|
|
|
|