|
@@ -97,7 +97,7 @@ export default {
|
|
|
activeName: 'first',
|
|
|
iscamera: false,
|
|
|
typevalue: 'warning',
|
|
|
- index: 0,
|
|
|
+ index: 1,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -211,6 +211,14 @@ export default {
|
|
|
console.error('failed to subscribe remoteStream');
|
|
|
});
|
|
|
});
|
|
|
+ this.client_.on('mute-video', event => {
|
|
|
+ const remoteStream = event.stream;
|
|
|
+ // 订阅远端音频和视频流
|
|
|
+ if (this.index > 1) {
|
|
|
+ this.index = this.index - 1;
|
|
|
+ }
|
|
|
+ console.log('333--index---->' + this.index);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
async liveon() {
|
|
@@ -223,7 +231,6 @@ export default {
|
|
|
videoTrack.stop();
|
|
|
this.client_.unpublish(this.localStream_).then(() => {
|
|
|
// 取消发布本地流成功
|
|
|
- this.index = this.index - 1;
|
|
|
});
|
|
|
});
|
|
|
}
|