1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:14:38 -05:00

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('seeked', () => {