test commit ignore pls

This commit is contained in:
ashley 2024-08-19 22:12:04 +00:00
parent db151c1ec2
commit ad28847a67

View file

@ -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) { %>