y595705120 3 年之前
父节点
当前提交
055149d890
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/containers/center/play/components/media.vue
  2. 1 0
      src/containers/center/play/index.vue

+ 1 - 1
src/containers/center/play/components/media.vue

@@ -84,7 +84,7 @@
         }else if (!this.media.position ){
           setTimeout( ()=>{
             that.doPlay()
-          }, 2000 )
+          }, 1000 )
         }
         this.isReady = true
       },

+ 1 - 0
src/containers/center/play/index.vue

@@ -228,6 +228,7 @@
         }
         this.options.sources = [{src:mediaUrl,type: "application/x-mpegURL"}];
         this.options.playtimes = this.media.position||0;
+        this.options.autoplay = this.options.playtimes>0;
         this.mediaDialog = true;
       }
     },