Skip to content

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

@CaresWe

Description

@CaresWe

代码如下:

// 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 打印的数据为空

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions