get-srt-server-settings
Use the interface to obtain SRT server configurations.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/sc_cloud/scapi/get-srt-server-settings |
Data Format |
Response: Content-Type: application/json |
Request Cookies
Parameter |
Description |
mwcloud-sid |
A string value that is used to uniquely identify user logged-in. |
mwcloud-uid |
Current logged-in username. |
Request Example
GET /sc_cloud/scapi/get-srt-server-settings HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
Response Parameters
Parameter |
Description |
Content-Type |
Value: 'application/json; charset=UTF-8' |
Response Body
Parameter |
Description |
result |
Result code. The options are as follows:- 0: success.
- Other values. For details about the result codes, please refer to API Status.
|
settings |
SRT server settings. |
settings
Parameter |
Description |
app_player_name |
Constant value: live. |
app_publisher_name |
Constant value: live. |
domain_player |
Play domain name. |
domain_publisher |
Upload domain name. |
latency |
Latency time ranges from 20ms to 8000ms and the default value is 120ms. |
port |
Port number ranges from 1024 to 65535. |
pbkeylen |
Your stream is not encrypted by default. The options are as follows:- 0: not encrypted
- 16: AES-128
- 24: AES-192
- 32: AES-256
|
passphrase |
Encryption passphrase. It is 10 to 79 characters when pbkeylen is 0. |
max_connections |
The maximum number of connections. |
Upload ID: <domain_publisher>/<app_publisher_name>/<stream_name>
Play ID: <domain_player>/<app_player_name>/<stream_name>
Response Example
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 238
{
"result": 0,
"settings": {
"app_player_name": "live",
"app_publisher_name": "live",
"domain_player": "play.srt",
"domain_publisher": "upload.srt",
"idle_streams_timeout": 10,
"latency": 20,
"port": 8000,
"pbkeylen": 0,
"passphrase": "",
"max_connections": 20
}
}