mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 18:58:39 +01:00
add syuff
This commit is contained in:
parent
4c2001ceee
commit
5bf3da0dc0
1 changed files with 11 additions and 1 deletions
|
@ -3,7 +3,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
controls: true,
|
||||
autoplay: false,
|
||||
preload: 'auto',
|
||||
|
||||
});
|
||||
|
||||
const qua = new URLSearchParams(window.location.search).get("quality") || "";
|
||||
|
@ -64,6 +63,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
audio.play();
|
||||
} else {
|
||||
video.pause();
|
||||
audio.pause();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -71,7 +71,17 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
audio.pause();
|
||||
});
|
||||
|
||||
video.on('waiting', () => {
|
||||
video.pause();
|
||||
audio.pause();
|
||||
});
|
||||
|
||||
video.on('canplaythrough', () => {
|
||||
if (!video.paused()) {
|
||||
video.play();
|
||||
audio.play();
|
||||
}
|
||||
});
|
||||
|
||||
video.on('seeking', handleSeek);
|
||||
|
||||
|
|
Loading…
Reference in a new issue