Browse Source

修复视频bug

zaijin 2 years ago
parent
commit
66e9e6faa1
1 changed files with 6 additions and 9 deletions
  1. 6 9
      h5_web/components/video-box/video-box.vue

+ 6 - 9
h5_web/components/video-box/video-box.vue

@@ -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
+      );
     }
   }
 };