Skip to content

Commit

Permalink
fix(Web): frame事件列表为空
Browse files Browse the repository at this point in the history
  • Loading branch information
hujinliang committed Aug 19, 2021
1 parent 7d8bbe0 commit 0e6af84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/dist/vap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@

var timePoint = info && info.mediaTime >= 0 ? info.mediaTime : this.video.currentTime;
var frame = Math.round(timePoint * this.options.fps) + this.options.offset;
var frameCbs = this.events['frame'];
var frameCbs = this.events['frame'] || [];
frameCbs.forEach(function (cb) {
cb(frame + 1, timePoint);
});
Expand Down
Loading

0 comments on commit 0e6af84

Please sign in to comment.