设置音视频单通道编码配置
POST
https://api2.hik-cloud.com/api/v1/open/streaming/channels/setConfig
设置音视频单通道编码配置
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/streaming/channels/setConfig' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "E21315860",
"id": "101",
"channelName": "E21315860c",
"enabled": true,
"video": {
"enabled": true,
"videoInputChannelID": "1",
"videoCodecType": "H.264",
"videoResolutionWidth": 1280,
"videoResolutionHeight": 720,
"videoQualityControlType": "CBR",
"constantBitRate": 2048,
"fixedQuality": 45,
"vbrUpperCap": 1280,
"vbrLowerCap": 720,
"maxFrameRate": 2500,
"keyFrameInterval": 1000,
"smartCodec": {
"enabled": true
}
},
"audio": {
"enabled": true,
"audioInputChannelID": "1",
"audioCompressionType": "G.711ulaw"
}
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功"
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-19 10:28:56