lemme see lol

This commit is contained in:
Ashley 2023-12-08 18:14:01 +00:00
parent ea3f3ee6f2
commit 2ab6bb1c89

View file

@ -1813,8 +1813,11 @@ const drawPause = () => {
const init = () => {
AMvideo.addEventListener("loadeddata", drawLoop, false)
AMvideo.addEventListener("seeked", draw, false)
AMvideo.addEventListener("play", drawLoop, false)
AMvideo.addEventListener("pause", drawPause, false)
AMvideo.addEventListener("play", () => {
// Start the draw loop with a target frame rate of 250 frames per second (1 / 0.004)
step = window.requestAnimationFrame(drawLoop);
}, false);
AMvideo.addEventListener("pause", drawPause, false)
AMvideo.addEventListener("ended", drawPause, false)
}