|
@@ -179,15 +179,12 @@ export default {
|
|
|
ended() {
|
|
|
// 用户把进度条拉到最后,但是实际观看时间不够,跳转回去会自动暂停。
|
|
|
// 这里加个判断。
|
|
|
- if (this.playedTime < this.duration) {
|
|
|
- // this.videoContext.pause();
|
|
|
- this.$emit(
|
|
|
- 'recordDuration',
|
|
|
- { playDuration: this.playedTime, duration: this.duration, currentDuration: this.currentDuration },
|
|
|
- this.videoIndex,
|
|
|
- false
|
|
|
- );
|
|
|
- }
|
|
|
+ this.$emit(
|
|
|
+ 'recordDuration',
|
|
|
+ { playDuration: this.playedTime, duration: this.duration, currentDuration: this.currentDuration },
|
|
|
+ this.videoIndex,
|
|
|
+ false
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
};
|