We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd8c67 commit 2daa938Copy full SHA for 2daa938
src/mapboxgl/overlay/VideoLayer.js
@@ -273,7 +273,7 @@
273
let count = 0;
274
const videoEle = this.video.tech().el();
275
let current = 0;
276
- if (this.videoParameters.length > 1) {
+ if (this.videoParameters.length > 1 && videoEle && videoEle.requestVideoFrameCallback) {
277
const updateCanvas = (now, metadata) => {
278
current = metadata.mediaTime;
279
videoEle.requestVideoFrameCallback(updateCanvas);
0 commit comments