mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:58:12 +01:00
fix this
This commit is contained in:
parent
1d0d76832d
commit
e38f3dea87
1 changed files with 1 additions and 6 deletions
|
@ -679,12 +679,7 @@ background-color: #0000;
|
||||||
audio.pause();
|
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);
|
video.on('seeking', handleSeek);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue