Browse Source

视频声音bug

zhangjie 3 years ago
parent
commit
6fa07668fe

+ 2 - 2
src/features/invigilation/OnlinePatrol/PatrolWarningDetail.vue

@@ -426,7 +426,7 @@ export default {
         this.$refs.SecondViewVideo.mutedPlayer(true);
 
         const res = this.$refs.FirstViewVideo.mutedPlayer(
-          this.firstViewVideo.muted
+          !this.firstViewVideo.muted
         );
         if (res) this.firstViewVideo.muted = !this.firstViewVideo.muted;
       } else {
@@ -434,7 +434,7 @@ export default {
         this.$refs.FirstViewVideo.mutedPlayer(true);
 
         const res = this.$refs.SecondViewVideo.mutedPlayer(
-          this.secondViewVideo.muted
+          !this.secondViewVideo.muted
         );
         if (res) this.secondViewVideo.muted = !this.secondViewVideo.muted;
       }

+ 3 - 2
src/features/invigilation/RealtimeMonitoring/WarningDetail.vue

@@ -844,7 +844,7 @@ export default {
         this.$refs.SecondViewVideo.mutedPlayer(true);
 
         const res = this.$refs.FirstViewVideo.mutedPlayer(
-          this.firstViewVideo.muted
+          !this.firstViewVideo.muted
         );
         if (res) this.firstViewVideo.muted = !this.firstViewVideo.muted;
       } else {
@@ -852,8 +852,9 @@ export default {
         this.$refs.FirstViewVideo.mutedPlayer(true);
 
         const res = this.$refs.SecondViewVideo.mutedPlayer(
-          this.secondViewVideo.muted
+          !this.secondViewVideo.muted
         );
+
         if (res) this.secondViewVideo.muted = !this.secondViewVideo.muted;
       }
     },

+ 1 - 1
src/features/invigilation/common/FlvMedia.vue

@@ -6,7 +6,7 @@
     element-loading-background="rgba(0, 0, 0, 0.8)"
   >
     <video ref="VideoMedia" muted @ended="destroyPlayer"></video>
-    <div v-if="result.error" class="media-error">
+    <div v-if="result.error" class="media-error" @click.stop="() => {}">
       <div class="media-error-content">
         <div>{{ result.message }}</div>
         <el-button type="text" icon="el-icon-refresh-left" @click="reloadVideo"

+ 1 - 1
src/features/invigilation/common/InvigilationStudent.vue

@@ -105,7 +105,7 @@ export default {
       this.$refs.InvigilationStudentMediaDialog.open();
     },
     toMuted() {
-      console.log(this.muted);
+      // console.log(this.muted);
       const nextMuted = !this.muted;
       this.$emit("muted", nextMuted);
       const res = this.mutedPlayer(nextMuted);