我正在尝试使用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
});
以上成功。
但是,下一个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"
}
出问题了吗?