我正在尝试从本教程(Agora Cloud Recording RESTful API)连接云录制并在 /v1/apps/{appid}/cloud_recording/resourceid/{resourceid}/sid/{sid}/mode/{mode 上收到 404 错误}/查询请求,视频未保存到 AWS s3 存储桶
脚步:
1 - 发布:https ://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/acquire
发布身体原料:
{
"cname": "post39989_channel",
"uid": "206666", # <- this is uniq id in channel
"clientRequest": {}
}
接收
{
"resourceId": "nUwxxxx....xxxxxVTXt"
}
{
"cname": "post39989_channel",
"uid": "206666", # <- this is uniq id in channel
"clientRequest": {
"recordingConfig": {
"channelType":1,
"maxIdleTime": 100,
"transcodingConfig": {
"width": 640,
"height": 480,
"fps": 30,
"bitrate": 1500,
"backgroundColor": "#fff000"
},
"subscribeVideoUids":["20"], # <- this is id of user who will stream
"subscribeAudioUids":["20"]
},
"storageConfig": {
"accessKey": "AxxxxxxY",
"secretKey": "2xxxxxxg",
"region": 0, # US East (N. Virginia) us-east-1
"bucket": "my-bucket-name",
"vendor": 1, # S3
"fileNamePrefix": [
"agoraraw"
]
}
}
}
接收
{
"resourceId": "nUwxxxx....xxxxxVTXt",
"sid": "feexxxxxxx784c"
}
3 - 在 Web 上接收流媒体用户的令牌 (id=20)
4 - 开始流(流工作)
// Create a client
this.rtc.client = AgoraRTC.createClient({mode: "live", codec: "h264",areaCode: ['GLOBAL']});
5 - 在尝试调用 GET 的流期间:https ://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/query
并得到回应:
{
"resourceId": "nUwxxxx....xxxxxVTXt",
"sid": "feexxxxxxx784c",
"code": 404
}
如果调用 POST 的响应相同:https ://api.agora.io/v1/apps/86c92xxxxxxxdb3/cloud_recording/resourceid/nUwxxxx....xxxxxVTXt/sid/feexxxxxxx784c/mode/mix/stop与数据:
{
"cname": "post39989_channel",
"uid": "206666",
"clientRequest": {}
}
有什么我缺少的建议吗?