diff options
| author | src-tinkerer <149616646+src-tinkerer@users.noreply.github.com> | 2024-03-26 12:19:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-26 12:19:45 +0000 |
| commit | 72fe8af850b3dbddbdd3c60cf7e152a78a995859 (patch) | |
| tree | 323ab67b40867525a5a8f6d2dc19abc54ed6bb13 /assets/js/player.js | |
| parent | cf61af67abc1bffdeefd080542d11c2eae13d754 (diff) | |
| parent | 99a5e9cbc44daa4555f36b43bc4b7246aee454c9 (diff) | |
| download | invidious-72fe8af850b3dbddbdd3c60cf7e152a78a995859.tar.gz invidious-72fe8af850b3dbddbdd3c60cf7e152a78a995859.tar.bz2 invidious-72fe8af850b3dbddbdd3c60cf7e152a78a995859.zip | |
Merge branch 'master' into stream-sort
Diffstat (limited to 'assets/js/player.js')
| -rw-r--r-- | assets/js/player.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 16bb2752..71c5e7da 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -747,6 +747,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'); |
