Commit 42b8170d by zeyang

视频播放统计

parent 7a498a48
...@@ -558,7 +558,7 @@ ...@@ -558,7 +558,7 @@
this.isRenderVideo = true; this.isRenderVideo = true;
this.totalTime = this.viewTime = 0; this.totalTime = this.viewTime = 0;
// 跳转到指定位置 // 跳转到指定位置
this.videoContext.seek(thie.viewTime); this.videoContext.seek(this.viewTime);
uni.hideLoading(); uni.hideLoading();
} }
}) })
...@@ -618,7 +618,7 @@ ...@@ -618,7 +618,7 @@
} }
} }
}, },
timeupdate(e) { timeupdate(e) {
this.totalTime = e.detail.duration; this.totalTime = e.detail.duration;
// 播放进度变化 // 播放进度变化
this.viewTime = e.detail.currentTime > this.totalTime ? this.totalTime : e.detail.currentTime; this.viewTime = e.detail.currentTime > this.totalTime ? this.totalTime : e.detail.currentTime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment