Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CaresWe opened this issue Nov 11, 2020 · 0 comments

Comments

@CaresWe
Copy link

CaresWe commented Nov 11, 2020

代码如下:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant