Merge branch 'iv-org:master' into main

This commit is contained in:
broquemonsieur
2023-12-18 01:58:36 +00:00
committed by GitHub
13 changed files with 36 additions and 203 deletions

View File

@@ -752,6 +752,17 @@ if (navigator.vendor === 'Apple Computer, Inc.' && video_data.params.listen) {
});
}
// Safari screen timeout on looped video playback fix
if (navigator.vendor === 'Apple Computer, Inc.' && !video_data.params.listen && video_data.params.video_loop) {
player.loop(false);
player.ready(function () {
player.on('ended', function () {
player.currentTime(0);
player.play();
});
});
}
// Watch on Invidious link
if (location.pathname.startsWith('/embed/')) {
const Button = videojs.getComponent('Button');