Update css/player-base-new.js
This commit is contained in:
parent
54404d15a0
commit
1d619df1d5
@ -285,7 +285,7 @@ var _yt_player = videojs;
|
|||||||
video.on('ended', () => { try { audio.pause(); } catch {}; clearSyncLoop(); });
|
video.on('ended', () => { try { audio.pause(); } catch {}; clearSyncLoop(); });
|
||||||
audio.addEventListener('ended', () => { try { video.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', () => {
|
document.addEventListener('fullscreenchange', () => {
|
||||||
if (!document.fullscreenElement) {
|
if (!document.fullscreenElement) {
|
||||||
video.pause();
|
video.pause();
|
||||||
@ -369,7 +369,7 @@ var _yt_player = videojs;
|
|||||||
|
|
||||||
const keepTime = Number(video.currentTime());
|
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 { video.pause(); } catch {}
|
||||||
try { audio.pause(); } catch {}
|
try { audio.pause(); } catch {}
|
||||||
clearSyncLoop();
|
clearSyncLoop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user