mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-03 12:11:22 +05:30
Fix player parameters
This commit is contained in:
parent
d25146d22f
commit
d75d34abdd
@ -129,11 +129,12 @@ var player = videojs('player', options, function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
this.share(shareOptions);
|
player.share(shareOptions);
|
||||||
|
|
||||||
<% if video_start > 0 || video_end > 0 %>
|
<% if video_start > 0 || video_end > 0 %>
|
||||||
this.markers({
|
player.markers({
|
||||||
onMarkerReached: function(marker) {
|
onMarkerReached: function(marker) {
|
||||||
if (marker.text === 'End') {
|
if (marker.text === 'End') {
|
||||||
if (player.loop()) {
|
if (player.loop()) {
|
||||||
@ -153,7 +154,7 @@ var player = videojs('player', options, function() {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.currentTime(<%= video_start %>);
|
player.currentTime(<%= video_start %>);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !listen %>
|
<% if !listen %>
|
||||||
@ -167,7 +168,6 @@ var player = videojs('player', options, function() {
|
|||||||
|
|
||||||
player.src(currentSources);
|
player.src(currentSources);
|
||||||
<% end %>
|
<% end %>
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@ -138,11 +138,12 @@ var player = videojs('player', options, function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
this.share(shareOptions);
|
player.share(shareOptions);
|
||||||
|
|
||||||
<% if video_start > 0 || video_end > 0 %>
|
<% if video_start > 0 || video_end > 0 %>
|
||||||
this.markers({
|
player.markers({
|
||||||
onMarkerReached: function(marker) {
|
onMarkerReached: function(marker) {
|
||||||
if (marker.text === 'End') {
|
if (marker.text === 'End') {
|
||||||
if (player.loop()) {
|
if (player.loop()) {
|
||||||
@ -162,7 +163,7 @@ var player = videojs('player', options, function() {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.currentTime(<%= video_start %>);
|
player.currentTime(<%= video_start %>);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !listen %>
|
<% if !listen %>
|
||||||
@ -178,10 +179,9 @@ var player = videojs('player', options, function() {
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if preferences %>
|
<% if preferences %>
|
||||||
this.volume(<%= preferences.volume.to_f / 100 %>);
|
player.volume(<%= preferences.volume.to_f / 100 %>);
|
||||||
this.playbackRate(<%= preferences.speed %>);
|
player.playbackRate(<%= preferences.speed %>);
|
||||||
<% end %>
|
<% end %>
|
||||||
});
|
|
||||||
|
|
||||||
function toggle(target) {
|
function toggle(target) {
|
||||||
body = target.parentNode.parentNode.children[1];
|
body = target.parentNode.parentNode.children[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user