秦鹏 3 лет назад
Родитель
Сommit
5f4f511c72
1 измененных файлов с 7 добавлено и 8 удалено
  1. 7 8
      src/components/Adult/preview/VideoControl.vue

+ 7 - 8
src/components/Adult/preview/VideoControl.vue

@@ -11,11 +11,7 @@
       @mouseout="videoOut"
     ></video>
     <div :class="['qxd', qxdShow ? 'qxdshow' : 'qxdhide']">清晰度</div> -->
-    <div
-      :id="'videoPlayer' + indexStr"
-      @mousemove="viedeoMove"
-      @click="videoClick"
-    ></div>
+    <div :id="'videoPlayer' + indexStr" @mousemove="viedeoMove"></div>
   </div>
 </template>
 
@@ -44,9 +40,12 @@ export default {
     player: {
       handler: function () {
         //do something
-        if (this.player._hasStart) {
-          //this.zantingAudio()
-        }
+        // if (this.player._hasStart) {
+        //this.zantingAudio()
+        // }
+        this.player.once("play", () => {
+          this.zantingAudio();
+        });
       },
       deep: true,
     },