Update css/player-base-new.js

This commit is contained in:
ashley 2025-09-06 12:04:08 +02:00
parent 54404d15a0
commit 1d619df1d5

View File

@ -285,7 +285,7 @@ var _yt_player = videojs;
video.on('ended', () => { try { audio.pause(); } catch {}; clearSyncLoop(); });
audio.addEventListener('ended', () => { try { video.pause(); } catch {}; clearSyncLoop(); });
// pause when exiting full screen :3 (your existing behavior)
// pause when exiting full screen :3
document.addEventListener('fullscreenchange', () => {
if (!document.fullscreenElement) {
video.pause();
@ -369,7 +369,7 @@ var _yt_player = videojs;
const keepTime = Number(video.currentTime());
// pause & clear sync while we refetch (quiet, no UI flicker)
// pause & clear sync while we refetch (quiet)
try { video.pause(); } catch {}
try { audio.pause(); } catch {}
clearSyncLoop();