mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-26 05:48:38 +01:00
test commit ignore pls
This commit is contained in:
parent
db151c1ec2
commit
ad28847a67
1 changed files with 4 additions and 6 deletions
|
@ -675,11 +675,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
};
|
||||
|
||||
video.on('play', () => {
|
||||
// Sync audio with video before playing
|
||||
if (Math.abs(video.currentTime() - audio.currentTime) > 0.3) {
|
||||
audio.currentTime = video.currentTime();
|
||||
}
|
||||
|
||||
// Set initial sync point at 0.01 seconds
|
||||
video.currentTime(0.01);
|
||||
audio.currentTime = 0.01;
|
||||
|
||||
// Wait for both video and audio to be buffered sufficiently
|
||||
if (isVideoBuffered() && checkAudioBuffer()) {
|
||||
video.play();
|
||||
|
@ -736,7 +735,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<% if(dm) { %>
|
||||
|
|
Loading…
Reference in a new issue