谢杰标 2 年之前
父节点
当前提交
14d55e2ee3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages3/polyv/detail.vue

+ 3 - 3
pages3/polyv/detail.vue

@@ -700,7 +700,7 @@ export default {
         this.pauseTime = Date.now();
         this.pauseTimer = setInterval(() => {
           console.log("暂停时间", Date.now() - this.pauseTime, this.pauseTime);
-          if (Date.now() - this.pauseTime > 40 * 1000) {
+          if (Date.now() - this.pauseTime > 20 * 1000) {
             // 5 * 60 * 1000
             this.refPlv.exitFullScreen();
             this.text = "暂停";
@@ -1200,14 +1200,14 @@ export default {
     },
     //配置随机拍照时间
     configPhoto(duration) {
-      if (this.photoConfig && this.photoList.length) {
+      if ((this.photoConfig && this.photoList.length) || !this.isPlaying) {
         return;
       }
       let totalVideoTime = this.refPlv.getDuration();
       this.photoConfig = true;
       if (this.erJianErZao) {
         this.photoList = this.randomConfig(totalVideoTime, duration);
-        console.log(this.photoList, "this.photoList");
+        console.log(this.isPlaying, this.photoList, "this.photoList");
         return;
       }
       //没有历史拍照间隔数据