get-default-stream-server-config
Use the interface to get the default configuration of streaming server (before the user adding a sever)
Request Mode
POST http://ip/mwapi/get-default-stream-server-config
{
"type":1
}
Parameter | Description |
---|---|
type | The server type. 1: RTMP |
Response Body
JSON structure is as follows:
{
"info": {
"authentication": false,
"autoSwitch": false,
"effective": false,
"encoder": {
"audioBitrate": 128,
"codeType": 0,
"duration": 166666,
"encodingMode": 1,
"keyframeInterval": 2,
"profile": 0,
"resolution": "1920x1080",
"videoBitrate": 2048
},
"id": 0,
"name": "RTMP Server (2)",
"password": "",
"streamKey": "",
"type": 1,
"url": "",
"userName": ""
},
"message": "message",
"status": 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 |