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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy