We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2daa938 commit 320dae7Copy full SHA for 320dae7
1 file changed
src/mapboxgl/overlay/VideoLayer.js
@@ -286,8 +286,8 @@
286
urls: [url],
287
drawImageCallback(frame) {
288
if (that.videoParameters.length > 1) {
289
- current = that.video.currentTime();
290
- let res = that.finder.findNearest(current);
+ let time = current || that.video.currentTime();
+ let res = that.finder.findNearest(time);
291
if (res) {
292
count = res.value;
293
}
0 commit comments