1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 22:34:39 -05:00
This commit is contained in:
ashley 2024-08-03 19:46:37 +00:00
parent 1d0d76832d
commit e38f3dea87

View file

@ -679,12 +679,7 @@ background-color: #0000;
audio.pause();
});
video.on('timeupdate', () => {
if (Math.abs(video.currentTime() - audio.currentTime) > 0.3) {
audio.pause(); // Pause audio if it's not in sync
audio.currentTime = video.currentTime();
}
});
video.on('seeking', handleSeek);