set-stream
Use the interface to select stream type for your sessions. Usually the performance of the main stream is better than that of the sub stream.
HTTP Request
GET http://ip/usapi?method=set-stream&rec=0&live=1&mws=1
Parameter | Description |
---|---|
method | set-stream |
rec | Indicates the stream type used to record. 0 indicates the main stream 1 indicates the sub stream |
live | Indicates the stream type used to live broadcast. 0 indicates the main stream 1 indicates the sub stream |
mws | Indicates the stream type used to preview code stream in the App. 0 indicates the main stream 1 indicates the sub stream |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |