Parcourir la source

refactor: change the playback timeout to 60s

Casper Dai il y a 2 ans
Parent
commit
c80daafaaf
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/components/service/external/player.js

+ 6 - 2
src/components/service/external/player.js

@@ -199,9 +199,13 @@ export default {
       clearTimeout(this.$timer)
       this.$timer = setTimeout(() => {
         if (this.loading || this.waiting) {
-          this.onVideoDestroyByError('暂未获取到视频流')
+          this.onVideoDestroyByError(
+            this.loading
+              ? '暂未获取到视频流,请稍后重试'
+              : '数据量太小无法继续播放,请稍后重试'
+          )
         }
-      }, 10000)
+      }, 60000)
     },
     onVideoPlaying () {
       console.log('onVideoPlaying')