Skip to content

Commit 320dae7

Browse files
漏提交
1 parent 2daa938 commit 320dae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mapboxgl/overlay/VideoLayer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@
286286
urls: [url],
287287
drawImageCallback(frame) {
288288
if (that.videoParameters.length > 1) {
289-
current = that.video.currentTime();
290-
let res = that.finder.findNearest(current);
289+
let time = current || that.video.currentTime();
290+
let res = that.finder.findNearest(time);
291291
if (res) {
292292
count = res.value;
293293
}

0 commit comments

Comments
 (0)