|
@@ -364,6 +364,8 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.switchbtn = false;
|
|
this.switchbtn = false;
|
|
this.switchmeetbtn = false;
|
|
this.switchmeetbtn = false;
|
|
|
|
+ }
|
|
|
|
+ if (body.switchrole !== 'anchor' && body.userid === this.user.uid) {
|
|
const videoTrack = this.localStream_.getVideoTrack();
|
|
const videoTrack = this.localStream_.getVideoTrack();
|
|
if (videoTrack) {
|
|
if (videoTrack) {
|
|
this.localStream_.removeTrack(videoTrack).then(() => {
|
|
this.localStream_.removeTrack(videoTrack).then(() => {
|