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