/api/srt/sender-info 接口
SRT TX端信息
请求方式
POST /api/srt/sender-info
返回数据
{
"status": 0,
"srt": [
{
"uid": 1,
"enable": true,
"name": "srt_01",
"mode": 1,
"remote-ip": "",
"remote-port": 8000,
"bind-port": 10000,
"stream-id": "1",
"connect-timeout": 3000,
"retry-duration": 3000,
"latency": 120,
"bandwidth": 25,
"mtu": 1500,
"enc": 0,
"passphrase": "",
"enable-logo": false,
"report": {
"living-time-ms": 8970,
"mode": "listener",
"module-name": "mws_srt_sink_0",
"module-type": 114,
"num-clients": 0
}
}
]
}
属性 | 说明 |
---|---|
status | 0:执行成功。返回其它值请参考 API 状态码。 |
srt[i].uid | 唯一ID, 非0 |
srt[i].enable | 使能true/false |
srt[i].name | 名称 |
srt[i].mode | SRT 模式: 0:caller 1:listener |
srt[i].remote-ip | caller 模式IP地址 |
srt[i].remote-port | caller 模式端口 |
srt[i].bind-port | listener模式绑定端口 |
srt[i].stream-id | Stream ID |
srt[i].connect-timeout | 连接超时,单位ms |
srt[i].retry-duration | 重试等待时间,单位ms |
srt[i].latency | 延时时间,单位ms |
srt[i].bandwidth | 带宽,百分比 |
srt[i].mtu | MTU值,【0, 1500】 |
srt[i].enc | 加密方式, 0:不加密 16:aes-128 24:aes-192 32:aes-256 |
srt[i].passphrase | 秘钥 |
srt[i].enable-logo | 显示LOGO |
srt[i].report | 运行报告 |