mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:28:03 +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();
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue