update-rtmp
Use the interface to modify the configuration of RTMP streaming server.
Request Mode
POST http://ip/mwapi/update-rtmp
{
"id":1000,
"type":1,
"name":"rtmp",
"url":"10.10.7.10/live/",
"streamKey":"yxy",
"authentication":false,
"userName":"userName",
"password":"password",
"autoSwitch":false,
"encoder":{
"codeType":0,
"encodingMode":1,
"videoBitrate":2048,
"keyframeInterval":2,
"duration":166666,
"resolution":"1920x1080",
"audioBitrate":128,
"profile":0
}
}
Parameter | 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 pressing 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 |
Response Body
JSON structure is as follows:
{
"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. |