add canplay

This commit is contained in:
ashley 2024-09-24 20:30:39 +00:00
parent e1be2a6979
commit 4a6c62f68b

View file

@ -83,6 +83,13 @@ document.addEventListener("DOMContentLoaded", () => {
} }
}); });
video.on('canplay', () => {
if (!video.paused()) {
video.play();
audio.play();
}
});
video.on('seeking', handleSeek); video.on('seeking', handleSeek);
video.on('seeked', () => { video.on('seeked', () => {