云端录制 结束录制返回435

开启录制的参数:
{
“appId”: “5772e481b21e40eebbe9cb8c7f2a72de”,
“cname”: “9f00b94a56df4629a7c5e48e6c0e6ca8”,
“uid”: “527841”,
“clientRequest”: “{}”
}

query接口返回值:
{
“resourceId”:“nUwUbQf9Zg6tsgtLslGnDg0lk8RYaUE09pqOuSIgwfz5VWIoTiqFpJ3BmRryDolgUcNGojsqO698S_7PM5BWc3ArhZpnFCcBB94oOIyrhkMFLNWjwX2_QxFQ6eUphHEoWqcqCLFEO11lXzLde_DliWNMuDQq7GJv02d9GI84vM1TUFtubytlxvYKf6nEWJwY9xgilTRTiNoky4u_jcZcS_HTQvlSSnCkzKgq7sY8fdadCYykSswK-1R5Y7yQCw2ijnJjU6gLH0ioHZcJ5cwUrYDTIaXxsUZK18XrhDSHoY0”,
“sid”:“a40ef7768c485b38142b5884e0d03323”,
“serverResponse”:{“status”:3,“fileList”:"",“fileListMode”:“string”,“sliceStartTime”:0}
}"

结束录制是返回 435

请问是参数有问题吗?

clientRequest 参数都没填?
1、从后台看到,你的项目开启了 app 证书,那么需要传 token


2、 recordingConfigstorageConfig 参数也是需要填的。文档这里说的“选填”不准确,我会反馈给相关同事。

正确示例:

{
  "uid": "527841",
  "cname": "httpClient463224",
  "clientRequest": {
      "token": "<token if any>",
      "recordingConfig": {
          "maxIdleTime": 30,
          "streamTypes": 2,
          "audioProfile": 1,
          "channelType": 0, 
          "videoStreamType": 1, 
          "transcodingConfig": {
              "height": 640, 
              "width": 360,
              "bitrate": 500, 
              "fps": 15, 
              "mixedVideoLayout": 1,
              "backgroundColor": "#FF0000"
                      },
          "subscribeVideoUids": ["123","456"], 
          "subscribeAudioUids": ["123","456"],
          "subscribeUidGroup": 0
      }, 
      "storageConfig": {
          "accessKey": "xxxxxxf",
          "region": 3,
          "bucket": "xxxxx",
          "secretKey": "xxxxx",
          "vendor": 2,
          "fileNamePrefix": ["directory1","directory2"]
      }
  }
}