set-srt-settings接口
配置SRT服务器。
仅管理员有权限。
SRT服务器使用注意事项
接口原型
    | 协议 | 
    HTTP/HTTPS POST | 
    | URL | 
    ip[:port]/sc_cloud/srtserver/set-settings | 
    | 数据格式 | 
    请求消息:Content-Type: application/json 响应消息:Content-Type: application/json | 
请求Cookies
| 名称 | 
描述 | 
| mwcloud-sid | 
用于标识当前登录的字符串 | 
| mwcloud-uid | 
当前登录用户名 | 
Request Body
| 参数 | 
描述 | 
| port | 
端口,范围:1024~65535。 | 
| domain_player | 
播放域名称。 | 
| domain_publisher | 
上传域名称。 | 
| pbkeylen | 
是否使用加密,默认不使用。取值如下:- 0:不使用 
 - 16:AES-128
 - 24:AES-192 
 - 32:AES-256 
 
  | 
| passphrase | 
加密密码。pbkeylen取值不为0时,需要输入10~79位字符的密码。 | 
| app_player_name | 
播放应用名称。 | 
| app_publisher_name | 
上传应用名称。 | 
| idle_streams_timeout | 
超时时间。 | 
| latency | 
延迟时间 | 
| max_connections | 
最大连接数。 | 
上传流ID: <domain_publisher>/<app_publisher_name>/<流名称>
播放流ID: <domain_player>/<app_player_name>/<流名称>
请求示例
POST /sc_cloud/srtserver/set-settings HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 227
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
  "app_player_name": "live",
  "app_publisher_name": "live",
  "domain_player": "play.srt",
  "domain_publisher": "upload.srt",
  "idle_streams_timeout": 10,
  "latency": 20,
  "port": 8001,
  "max_connections": 20,
  "pbkeylen": 16,
  "passphrase": "111111111111"
}
响应参数
| 参数 | 
描述 | 
| Content-Type | 
取值为:'application/json; charset=UTF-8' | 
Response Body
| 参数 | 
描述 | 
| result | 
返回码。 | 
| method | 
方法名:set-srt-settings。 | 
响应示例
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 40
Connection: keep-alive
{
  "method": "set-srt-settings",
  "result": 0
}