0

我正在尝试Live Broadcast使用AgoraRTC.

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
});

以上已成功。但是,在 next 中总是会发生错误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"
}

有什么问题吗?

4

0 回答 0