0

我正在我的应用程序中实现 Agora v4。当我尝试发布我的本地曲目时,它成功发生,但随后我收到以下错误:

01:21:17:806 Agora-SDK [DEBUG]: [client-9e8ac] 收到异常消息,代码:2001,消息:AUDIO_INPUT_LEVEL_TOO_LOW,uid:4082215569 index.ts:269 01:21:17:807 Agora-SDK [ DEBUG]: [client-9e8ac] 接收异常消息,code: 2003, msg: SEND_AUDIO_BITRATE_TOO_LOW, uid: 4082215569 index.ts:269 01:21:17:807 Agora-SDK [DEBUG]: [client-9e8ac] 接收异常消息,代码:1003,消息:SEND_VIDEO_BITRATE_TOO_LOW,uid:4082215569

const agoraAccessToken = await actions.auth.getAgoraAccessToken({ requestParams: {channel: props.config.channel}});
    console.log(agoraAccessToken);


    let uid = await AgoraClient.join(props.config.appId, props.config.channel, agoraAccessToken);
    console.log(uid);

    let audioTrack = await AgoraRTC.createMicrophoneAudioTrack();
    let videoTrack = await AgoraRTC.createCameraVideoTrack();

    await AgoraClient.publish([audioTrack, videoTrack]);
4

1 回答 1

0

您可以使用setVideoEncoderConfiguration设置帧率和比特率的最小和最大限制,这些限制会根据网络速度自动调整。

示例:https ://docs.agora.io/en/Video/video_profile_web_ng?platform=Web 。

于 2021-06-11T16:28:05.980 回答