| param name | required | type | desc |
|---|---|---|---|
| nickName | Y | String | nickName |
| authType | Y | Integer | default value:1 |
| rtmpType | Y | Integer | 0:PUSH 1:PULL |
| subType | Y | String | default value: RTMP |
| rtmpUrl | F | String | when rtmpType is 0 must be set value,The address of rtmp pull can be found in the ListOutputAccount API after successful streaming (it is necessary to modify the sendeType parameter in the ListOutputAccount API and add an O type) |
| index | F | String | random four digit letter, when rtmpType is 1 must be set, for example: abcd |
| resolution | F | String | 1920x1080 |
| bitrate | F | String | default value: 5.0M |
| mode | F | String | 0: overlay 1:clean |
| audioCode | F | String | audio code,for example: AAC |
| videoCode | F | String | video code,for example: H264 |
{
"nickName": "test-rtmp-pull",
"rtmpUrl": "",
"authType": 1,
"subType": "RTMP",
"index": "abcd",
"rtmpType": 1,
"bitrate": "5.0M",
"resolution": "1920x1080",
"mode": 0,
"audioCode": "AAC",
"videoCode": "H264"
}{
"nickName": "test-rtmp-push",
"rtmpUrl": "rtmp://10.12.22.23/live/test",
"authType": 1,
"subType": "RTMP",
"index": "RQ47",
"rtmpType": 0,
"bitrate": "5.0M",
"resolution": "1920x1080",
"mode": 0,
"audioCode": "AAC",
"videoCode": "H264"
}// Success
{
"errorCode": "0x0",
"errorInfo": "Success",
"result": {
"mediaId":"431542354fgfdsgfds3454"
}
}
| param name | required | type | desc |
|---|---|---|---|
| id | Y | String | account id |
| nickName | Y | String | nickName |
| authType | Y | Integer | default value:1 |
| rtmpType | Y | Integer | 0:PUSH 1:PULL |
| subType | Y | String | default value: RTMP |
| rtmpUrl | F | String | when rtmpType is 0 must be set value |
| index | F | String | random four digit letter, when rtmpType is 1 must be set, for example: abcd |
| resolution | F | String | 1920x1080 |
| bitrate | F | String | default value: 5.0M |
| mode | F | String | 0: overlay 1:clean |
| audioCode | F | String | audio code,for example: AAC |
| videoCode | F | String | video code,for example: H264 |
{
"id":"431542354fgfdsgfds3454",
"nickName": "test-rtmp-pull",
"rtmpUrl": "",
"authType": 1,
"subType": "RTMP",
"index": "abcd",
"rtmpType": 1,
"bitrate": "5.0M",
"resolution": "1920x1080",
"mode": 0,
"audioCode": "AAC",
"videoCode": "H264"
}{
"id":"431542354fgfdsgfds3454",
"nickName": "test-rtmp-push",
"rtmpUrl": "rtmp://10.12.22.23/live/test",
"authType": 1,
"subType": "RTMP",
"index": "RQ47",
"rtmpType": 0,
"bitrate": "5.0M",
"resolution": "1920x1080",
"mode": 0,
"audioCode": "AAC",
"videoCode": "H264"
}// Success
{
"errorCode": "0x0",
"errorInfo": "Success",
"result": null
}
curl --location 'https://media-search.tvunetworks.com/media/tvucc-media/other/authInfo' \
--header 'SID: ' \
--header 'Cookie: mediasearch10=10mstfri' \
--header 'Content-Type: application/json' \
--data '{
"nickName": "test-rtmp-push",
"rtmpUrl": "rtmp://10.12.22.23/live/test",
"authType": 1,
"subType": "RTMP",
"index": "RQ47",
"rtmpType": 0,
"bitrate": "5.0M",
"resolution": "1920x1080",
"mode": 0,
"audioCode": "AAC",
"videoCode": "H264"
}'{
"errorCode": "0x0",
"errorInfo": "Success",
"result": {
"mediaId": "431542354fgfdsgfds3454"
}
}