Skip to content

Commit 2daa938

Browse files
fix ut
1 parent 0cd8c67 commit 2daa938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapboxgl/overlay/VideoLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
let count = 0;
274274
const videoEle = this.video.tech().el();
275275
let current = 0;
276-
if (this.videoParameters.length > 1) {
276+
if (this.videoParameters.length > 1 && videoEle && videoEle.requestVideoFrameCallback) {
277277
const updateCanvas = (now, metadata) => {
278278
current = metadata.mediaTime;
279279
videoEle.requestVideoFrameCallback(updateCanvas);

0 commit comments

Comments
 (0)