|
@@ -730,23 +730,20 @@ export default {
|
|
|
remoteStream.stop();
|
|
|
});
|
|
|
this.client_.on('mute-video', event => {
|
|
|
- const remoteStream = event.stream;
|
|
|
- console.log('退出');
|
|
|
- console.log(event);
|
|
|
- console.log('退出remoteStream' + event);
|
|
|
- if (remoteStream) {
|
|
|
- const userid_ = remoteStream.getUserId();
|
|
|
- const useridsplit_ = userid_.substring(0, 5);
|
|
|
- console.log('退出userid_' + userid_);
|
|
|
-
|
|
|
- if (useridsplit_ === 'wxxcx' || useridsplit_ === 'meetu') {
|
|
|
- console.log('退出userid_' + useridsplit_);
|
|
|
- // 订阅远端音频和视频流
|
|
|
- if (this.index_ > 0) {
|
|
|
- this.index_ = this.index_ - 1;
|
|
|
- }
|
|
|
+ const userid_ = event.userId;
|
|
|
+ const useridsplit_ = userid_.substring(0, 5);
|
|
|
+ if (useridsplit_ === 'wxxcx' || useridsplit_ === 'meetu') {
|
|
|
+ console.log('退出userid_' + useridsplit_);
|
|
|
+ const swichstrem = _.find(this.stremMeetlist, { swichuserid: userid_ });
|
|
|
+ this.stermStop(swichstrem.strem);
|
|
|
+ // 订阅远端音频和视频流
|
|
|
+ if (this.index_ > 0) {
|
|
|
+ this.index_ = this.index_ - 1;
|
|
|
}
|
|
|
}
|
|
|
+ console.log('退出');
|
|
|
+ console.log(event);
|
|
|
+ console.log('退出remoteStream' + userid_);
|
|
|
console.log('333--index---->' + this.index_);
|
|
|
});
|
|
|
}
|