test ignore

This commit is contained in:
Ashley 2023-12-08 20:10:54 +00:00
parent e143dcb450
commit c0cadded4c

View file

@ -1793,9 +1793,7 @@ const ctx = canvas.getContext("2d")
let step; let step;
const draw = () => { const draw = () => {
if (AMvideo.readyState >= 2) { // Check if video is playable (HAVE_CURRENT_DATA or greater)
ctx.drawImage(AMvideo, 0, 0, canvas.width, canvas.height); ctx.drawImage(AMvideo, 0, 0, canvas.width, canvas.height);
}
}; };
const drawLoop = () => { const drawLoop = () => {
@ -1809,12 +1807,10 @@ const drawPause = () => {
} }
const init = () => { const init = () => {
document.addEventListener("DOMContentLoaded", () => {
AMvideo.addEventListener("canplaythrough", draw, false); AMvideo.addEventListener("canplaythrough", draw, false);
AMvideo.addEventListener("play", drawLoop, false); AMvideo.addEventListener("play", drawLoop, false);
AMvideo.addEventListener("pause", drawPause, false); AMvideo.addEventListener("pause", drawPause, false);
AMvideo.addEventListener("ended", drawPause, false); AMvideo.addEventListener("ended", drawPause, false);
});
}; };
const cleanup = () => { const cleanup = () => {