mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 07:38:38 +01:00
yeah
This commit is contained in:
parent
c0cadded4c
commit
6b9ac260be
1 changed files with 9 additions and 5 deletions
|
@ -1806,12 +1806,16 @@ const drawPause = () => {
|
|||
step = undefined
|
||||
}
|
||||
|
||||
|
||||
const init = () => {
|
||||
AMvideo.addEventListener("canplaythrough", draw, false);
|
||||
AMvideo.addEventListener("play", drawLoop, false);
|
||||
AMvideo.addEventListener("pause", drawPause, false);
|
||||
AMvideo.addEventListener("ended", drawPause, false);
|
||||
};
|
||||
video.pause();video.play();
|
||||
AMvideo.addEventListener("loadeddata", draw, false)
|
||||
AMvideo.addEventListener("seeked", draw, false)
|
||||
AMvideo.addEventListener("play", drawLoop, false)
|
||||
AMvideo.addEventListener("pause", drawPause, false)
|
||||
AMvideo.addEventListener("ended", drawPause, false)
|
||||
}
|
||||
|
||||
|
||||
const cleanup = () => {
|
||||
AMvideo.removeEventListener("loadeddata", draw)
|
||||
|
|
Loading…
Reference in a new issue