Skip to content

Commit 9cca8a6

Browse files
committed
fix issue with video
1 parent 3cfe4e3 commit 9cca8a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

video/video.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,6 @@
250250
video.addEventListener("playing", function() {
251251
copyVideo = true;
252252
}, true);
253-
video.addEventListener("canplaythrough", function() {
254-
setVideo = true;
255-
}, true);
256253
video.addEventListener("ended", function() {
257254
if (!audio) {
258255
video.currentTime = 0;
@@ -285,6 +282,9 @@
285282
audio.play();
286283
});
287284
audio.play();
285+
video.addEventListener("canplaythrough", function() {
286+
setVideo = true;
287+
}, true);
288288
video.load();
289289
} else {
290290
video.play();

0 commit comments

Comments
 (0)