Skip to content

Commit

Permalink
chore(Web): update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hujinliang committed Jul 5, 2022
1 parent ee92c4a commit 55f37f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions web/dist/vap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@
var _this2 = this;

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

if (canvas) {
canvas.parentNode && canvas.parentNode.removeChild(canvas);
} // glUtil.cleanWebGL(gl, this.shaders, this.program, this.textures, this.buffers)
}

gl.clear(gl.COLOR_BUFFER_BIT); // glUtil.cleanWebGL(gl, this.shaders, this.program, this.textures, this.buffers)

get(getPrototypeOf$1(WebglRenderVap.prototype), "destroy", this).call(this);

Expand Down
Loading

0 comments on commit 55f37f1

Please sign in to comment.