初始化本地流失败

时间:2019-09-16 13:19:08

标签: agora.io

我正在尝试使用Live BroadcastAgoraRTC

AgoraRTC.createClient({mode: 'live'});
Client.init(appId, function(){...});
Client.setClientRole("host");
Client.join(null, "channelName", null, function(uid){...});
AgoraRTC.createStream({
    streamID: uid, 
    video: true, 
    audio: true, 
    screen: false
});

以上成功。 但是,下一个Stream.init()中总是发生错误。 错误内容如下。

{
    "type": "error",
    "info": "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.",
    "msg": "NotAllowedError"
}

出问题了吗?

0 个答案:

没有答案