Agora IO云记录停止功能获取uploadStatus unknow和代码435

问题描述 投票:0回答:1

我需要通过API在agoraIO中进行云记录。我已经成功获取了responseId,并且通过该responseId我已经成功开始了can录制并获得了200状态代码的sid。但是,当我调用stop()函数时,它显示错误代码:435。我有AWS3帐户并输入accessKey和accesSecrete。我也创建了存储桶。我对水桶几乎一无所知。我已经添加了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"}}
video-recording agora.io
1个回答
0
投票

您的开始请求的正文应如下所示:>

{
    "cname":"{{AccessChannel}}",
    "uid":"{{RecordingUID}}",
    "clientRequest":{
        "recordingConfig":{
            "maxIdleTime":120,
            "streamTypes":2,
            "audioProfile":1,
            "channelType":1,
            "videoStreamType":0,
            "transcodingConfig":{
                "width":360,
                "height":640,
                "fps":24,
                "bitrate":800,
                "mixedVideoLayout":1,
                "maxResolutionUid":"1"
                }
            },
        "storageConfig":{
            "vendor":{{StorageVendor}},
            "region":{{StorageRegion}},
            "bucket":"{{Bucket}}",
            "accessKey":"{{AccessKey}}",
            "secretKey":"{{SecretKey}}"
        }   
    }
} 

Agora的Postman集合使设置更易于理解:https://documenter.getpostman.com/view/6319646/SVSLr9AM?version=latest

© www.soinside.com 2019 - 2024. All rights reserved.