liuyu 4 years ago
parent
commit
41ce84d45c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/live/roomDetail.vue

+ 2 - 0
src/views/live/roomDetail.vue

@@ -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(() => {