liuyu 4 年之前
父節點
當前提交
41ce84d45c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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(() => {