mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-15 04:28:43 +01:00
add canplay
This commit is contained in:
parent
e1be2a6979
commit
4a6c62f68b
1 changed files with 7 additions and 0 deletions
|
@ -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', () => {
|
||||||
|
|
Loading…
Reference in a new issue