|
@@ -422,16 +422,20 @@ export default {
|
|
|
},
|
|
|
videoMute(type) {
|
|
|
if (type === "first") {
|
|
|
- this.secondViewVideo.muted = true;
|
|
|
- this.$refs.SecondViewVideo.mutedPlayer(true);
|
|
|
+ if (this.secondViewVideoReady) {
|
|
|
+ this.secondViewVideo.muted = true;
|
|
|
+ this.$refs.SecondViewVideo.mutedPlayer(true);
|
|
|
+ }
|
|
|
|
|
|
const res = this.$refs.FirstViewVideo.mutedPlayer(
|
|
|
!this.firstViewVideo.muted
|
|
|
);
|
|
|
if (res) this.firstViewVideo.muted = !this.firstViewVideo.muted;
|
|
|
} else {
|
|
|
- this.firstViewVideo.muted = true;
|
|
|
- this.$refs.FirstViewVideo.mutedPlayer(true);
|
|
|
+ if (this.firstViewVideoReady) {
|
|
|
+ this.firstViewVideo.muted = true;
|
|
|
+ this.$refs.FirstViewVideo.mutedPlayer(true);
|
|
|
+ }
|
|
|
|
|
|
const res = this.$refs.SecondViewVideo.mutedPlayer(
|
|
|
!this.secondViewVideo.muted
|