get-stream-server-list
Use the interface to get the stream sever list.
Request Mode
POST http://ip/mwapi/get-stream-server-list
Response Body
JSON structure is as follows:
{
"info": {
"serverList": [
{
"authentication": false,
"autoSwitch": true,
"effective": true,
"encoder": {
"audioBitrate": 128,
"codeType": 0,
"duration": 166666,
"encodingMode": 1,
"keyframeInterval": 2,
"profile": 0,
"resolution": "1920x1080",
"videoBitrate": 2048
},
"id": 1001,
"name": "11111",
"password": "Admin",
"streamKey": "Admin",
"type": 1,
"url": "10.10.10.12/live",
"userName": ""
}
],
"totalCount": 1
},
"message": "success",
"result": 0
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
Name | Description |
---|---|
id | The server ID |
type | The server type. 1: RTMP |
name | The server name |
url | The URL of streaming destination |
streamKey | The stream key |
autoSwitch | Whether auto stream is enabled, if yes, it supports start streaming by press the specified button. True: yes, False: no. |
authentication | Whether authentication is required. True: yes, False: no. |
userName | The username, only taking effect when authentication is required. |
password | The password, only taking effect when authentication is required. |
effective | Whether the stream server configuration is complete. True: yes, False: no |
encoder | The parameters of encoder |
Name | Description |
---|---|
resolution | The video resolution, 1920x1080:1080p 1280x720:720p |
duration | The framerate, 166666:60 FPS 333333:30 FPS |
videoBitrate | The video bitrate, in Kbps |
audioBitrate | The audio bitrate. 48: 48Khz,aac,48bps 64: 48Khz,aac,64bps 96: 48Khz,aac,96bps 128: 48Khz,aac,128bps 192: 48Khz,aac,192bps 256: 48Khz,aac,256bps |
codeType | The encoding type. 0: H.264 |
encodingMode | The encoding mode. 0: VBR, 1: CBR |
keyframeInterval | The keyframe interval, in seconds |
profile | The encoding profile. 0: Baseline, 1: Main Profile, 2: High Profile |