mirror of
https://codeberg.org/ashley/poke
synced 2026-03-06 14:17:59 +00:00
add canplay
This commit is contained in:
@@ -83,6 +83,13 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
}
|
||||
});
|
||||
|
||||
video.on('canplay', () => {
|
||||
if (!video.paused()) {
|
||||
video.play();
|
||||
audio.play();
|
||||
}
|
||||
});
|
||||
|
||||
video.on('seeking', handleSeek);
|
||||
|
||||
video.on('seeked', () => {
|
||||
|
||||
Reference in New Issue
Block a user