mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 02:17:47 +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,10 +675,9 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
video.on('play', () => {
|
video.on('play', () => {
|
||||||
// Sync audio with video before playing
|
// Set initial sync point at 0.01 seconds
|
||||||
if (Math.abs(video.currentTime() - audio.currentTime) > 0.3) {
|
video.currentTime(0.01);
|
||||||
audio.currentTime = video.currentTime();
|
audio.currentTime = 0.01;
|
||||||
}
|
|
||||||
|
|
||||||
// Wait for both video and audio to be buffered sufficiently
|
// Wait for both video and audio to be buffered sufficiently
|
||||||
if (isVideoBuffered() && checkAudioBuffer()) {
|
if (isVideoBuffered() && checkAudioBuffer()) {
|
||||||
|
@ -736,7 +735,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<% if(dm) { %>
|
<% if(dm) { %>
|
||||||
|
|
Loading…
Reference in a new issue