我需要通过 API 在 agoraIO 中进行云录制。我已经成功获得了 responseId 并且通过这个 responseId 我已经成功地开始了 can 记录并获得了带有 200 状态码的 sid。但是当我调用 stop() 函数时,它显示错误代码:435。我有 AWS3 帐户并输入 accessKey 和 accessSecrete。我也创建了桶。我对桶有点困惑。我已经添加了 AWS3 的访问权限。它只是存储桶名称还是其他名称?我很感激任何线索或修改。
Url: https://api.agora.io/v1/apps/#APPID#/cloud_recording/resourceid/#RecordingResponseId#/mode/mix/start
<cfset json_request_recording_start= {
"uid": "#uid#",
"cname": "#mychannel#",
"clientRequest": {
"token": "",
"recordingConfig": {
"maxIdleTime": 30,
"streamTypes": 2,
"audioProfile": 1,
"channelType": 0,
"videoStreamType": 1,
"transcodingConfig": {
"height": 640,
"width": 360,
"bitrate": 500,
"fps": 15,
"mixedVideoLayout": 1,
"backgroundColor": "##FF0000"
}
},
"storageConfig": {
"accessKey": "#accessKey#",
"region": 3,
"bucket": "#awsbucket#",
"secretKey": "#secretKey#",
"vendor": 2
}
}
}>
服务器响应
{
"resourceId":"fgfdfgfgfgfgfgf",
"sid":"ff4trtrtrgfgfgfgf7825c4a81d9a2e33",
"code":435,
"serverResponse":{
"fileList":"",
"uploadingStatus": "unknow"
}
}