{{domain}}/media/tvucc-media/outputSetting/add| key | value |
|---|---|
| Authorization | [F104519230124A5D8079CAA89449FF2C] |
| Cookie | [SID=F104519230124A5D8079CAA89449FF2C] |
| Content-Type | [application/json;charset=UTF-8] |
| Parameter(body) |
| name | required | type | explain |
|---|---|---|---|
| nickName | Y | String | output account |
| type | Y | String | output account type: HLS,SRT,RTP-FEC(The interface passes parameters as PROMPEG) |
| resolution | Y | String | output resolution |
| bitrate | Y | String | output bitrate |
| serverName | Y | String | The producer user passes the parameter value as pp |
| targetId | Y | String | business id,Producer users suggest filling in the program ID |
| externalParameters | Y | String | external param Different types have different extension parameters, which will be explained below |
| shareFlag | F | Integer | Share Across TVU Services 1:true,0:false,When set to 1, queries can be performed without binding to targetId |
| customTag | F | String | Custom label: first used for commentator hiding function (passing commentator default) |
{
"nickName": "HLS_20230410",
"type": "HLS",
"serverName": "pp",
"targetId": 52846403399680,
"shareFlag": 0,
"externalParameters": "{\"duration\":6,\"sliceCount\":10,\"index\":\"1\",\"mode\":0}",
"resolution": "1920x1080",
"bitrate": 8192,
"gopSizeMs": 2000
}{
"errorCode" : "0x0",
"errorInfo" : "Success",
"result" : "65278fb84a104c28af8cf2816e29b652"
}| name | type | explain |
|---|---|---|
| result | String | Return data this is output account id |
| errorCode | String | Return error code description,0x0:success |
| errorInfo | String | Return error description |
curl --location 'https://media-search.tvunetworks.com/media/tvucc-media/outputSetting/add' \
--header 'SID: ' \
--header 'Cookie: mediasearch10=10mstfri' \
--header 'Content-Type: application/json' \
--data '{
"nickName": "HLS_20230410",
"type": "HLS",
"serverName": "pp",
"targetId": 52846403399680,
"shareFlag": 0,
"externalParameters": "{\"duration\":6,\"sliceCount\":10,\"index\":\"1\",\"mode\":0}",
"resolution": "1920x1080",
"bitrate": 8192,
"gopSizeMs": 2000
}'{
"errorCode": "0x0",
"errorInfo": "Success",
"result": "5bb0575054744f71839bd36003bbfffd"
}