Skip to content

Commit 55f37f1

Browse files
author
hujinliang
committed
chore(Web): update lib
1 parent ee92c4a commit 55f37f1

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/dist/vap.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@
19221922
var _this2 = this;
19231923

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

19991999
if (canvas) {
20002000
canvas.parentNode && canvas.parentNode.removeChild(canvas);
2001-
} // glUtil.cleanWebGL(gl, this.shaders, this.program, this.textures, this.buffers)
2001+
}
20022002

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

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

0 commit comments

Comments
 (0)