get-srt-server接口
获取SRT服务器列表。
接口原型
    | 协议 | 
    HTTP/HTTPS GET | 
    | URL | 
    ip[:port]/sc_cloud/scapi/get-srt-server | 
    | 数据格式 | 
    响应消息:Content-Type: application/json | 
请求Cookies
| 名称 | 
描述 | 
| mwcloud-sid | 
用于标识当前登录的字符串 | 
| mwcloud-uid | 
当前登录用户名 | 
请求示例
GET /sc_cloud/scapi/get-srt-server HTTP/1.1
Accept: application/json, text/plain, */*
Connection: keep-alive
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
响应参数
| 参数 | 
描述 | 
| Content-Type | 
取值为:'application/json; charset=UTF-8' | 
Response Body
| 参数 | 
描述 | 
| result | 
返回码。 | 
| status | 
SRT服务器状态。 | 
status
| 参数 | 
描述 | 
| is-running | 
SRT服务器是否开启。 开启SRT服务器。 关闭SRT服务器。 | 
| connections | 
启动的SRT服务器数量。 | 
| down-bitrate | 
总播放比特率。 | 
| up-bitrate | 
总上传比特率。 | 
| clients | 
SRT服务器列表详细信息。 | 
clients
player
| 参数 | 
描述 | 
| addr | 
播放服务器地址。 | 
| bitrate | 
播放比特率。 | 
| port | 
端口。 | 
| stream_name | 
流名称。 | 
| type | 
常量值:player。 | 
| uptime | 
运行时间,单位:毫秒。 | 
publisher
| 参数 | 
描述 | 
| addr | 
上传服务器地址。 | 
| bitrate | 
上传比特率。 | 
| port | 
端口。 | 
| stream_name | 
流名称。 | 
| type | 
常量值:publisher。 | 
| uptime | 
运行时间,单位:毫秒。 | 
响应示例
本例中包含两个播放端。
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 487
{
  "result": 0,
  "status": {
    "is-running": true,
    "connections": 3,
    "down-bitrate": 1228800,
    "up-bitrate": 609280,
    "clients": [
      {
        "name": "streamID",
        "player": [
          {
            "addr": "10.10.14.135",
            "bitrate": 614400,
            "port": 46660,
            "stream_name": "streamID",
            "type": "player",
            "uptime": 13600
          },
          {
            "addr": "10.10.15.84",
            "bitrate": 614400,
            "port": 34154,
            "stream_name": "streamID",
            "type": "player",
            "uptime": 13602
          }
        ],
        "publisher": {
          "addr": "10.10.6.142",
          "bitrate": 609280,
          "port": 40089,
          "stream_name": "streamID",
          "type": "publisher",
          "uptime": 13616
        }
      }
    ]
  }
}