starrtc-web-demo icon indicating copy to clipboard operation
starrtc-web-demo copied to clipboard

vue使用starRTC,电脑上可以获取数据,但是手机上调试是获取不到

Open CaresWe opened this issue 3 years ago • 0 comments

代码如下:

// script 代码
getVideoList(_callback) {
      const _this = this;
      this.videoList = [];
      var listTypes = [
        CHATROOM_LIST_TYPE.CHATROOM_LIST_TYPE_MEETING,
        CHATROOM_LIST_TYPE.CHATROOM_LIST_TYPE_MEETING_PUSH,
      ];
      //开启AEC时
      if (StarRtc.Instance.starConfig.configUseAEC) {
        //
      } else {
        //仅供测试使用
        StarRtc.Instance.queryRoom(listTypes, function (status, listData) {
          //数据存储在listData中,为数组,单项结构为{"id", "name", "creator"}
          _this.videoList = listData;

          console.log(_this.videoList);

          // debugger;
          if (_callback != undefined) {
            _callback();
          }
        });
      }
    },

电脑端控制台打印有数据 手机端的 vconsole 打印的数据为空

CaresWe avatar Nov 11 '20 01:11 CaresWe