|
@@ -216,6 +216,7 @@ export default {
|
|
|
// 远端流订阅成功,播放远端音视频流
|
|
|
console.log('111' + remoteStream.getType());
|
|
|
this.index = this.index + 1;
|
|
|
+ console.log('111--index--->' + this.index);
|
|
|
if (this.index < 8) {
|
|
|
const id_ = 'look-video-' + this.index;
|
|
|
remoteStream.play(id_);
|
|
@@ -234,7 +235,13 @@ export default {
|
|
|
const remoteStream = event.stream;
|
|
|
// 订阅远端音频和视频流
|
|
|
this.index = this.index - 1;
|
|
|
- console.log('index---->' + this.index);
|
|
|
+ console.log('222--index---->' + this.index);
|
|
|
+ });
|
|
|
+ this.client_.on('mute-video', event => {
|
|
|
+ const remoteStream = event.stream;
|
|
|
+ // 订阅远端音频和视频流
|
|
|
+ // this.index = this.index - 1;
|
|
|
+ console.log('333--index---->' + this.index);
|
|
|
});
|
|
|
},
|
|
|
async liveclose() {
|