/api/tx/live-info 接口

TX 流信息

请求方式

POST /api/tx/live-info

返回数据

{
    "stream-no-max": 2,
    "streaming-count-max": 16,
    "streaming-count": 3,
    "streaming": [
        {
            "uid": 3,
            "enable": true,
            "name": "RTSP Server",
            "stream-no": "Stream1",
            "type": "rtsp",
            "rtsp": {
                "bind-port": 554,
                "max-client-num": 8,
                "key": "aud",
                "enable-auth": false,
                "username": "",
                "password": ""
            },
            "aac-bitrate-kbps": "128",
            "report": {
                "clients-status": [
                    {
                        "audio-lost-percent": 5847.757058208435,
                        "audio-lost-total": 16777215,
                        "bitrate-kbps": 125,
                        "living-time-ms": 65359,
                        "name": "10.10.14.202",
                        "peer-audio-port": 63398,
                        "peer-rtsp-port": 56881,
                        "peer-video-port": 0,
                        "transport": "udp",
                        "video-lost-percent": 0.0,
                        "video-lost-total": 0
                    }
                ],
                "living-time-ms": 143812,
                "module-name": "mws_rtsp_sink_0",
                "module-type": 98,
                "num-clients": 1
            }
        },    
        {
            "uid": 11,
            "enable": true,
            "name": "NDI",
            "stream-no": "Stream1",
            "type": "ndi",
            "ndi": {
                "source-name": "test11",
                "group-name": "public",
                "enable-full": true,
                "audio-standard": "SMPTE",
                "enable-discovery": false,
                "discovery-server": "",
                "transport-mode": "tcp-unicast",
                "mcast-addr": "",
                "mcast-mask": "",
                "mcast-ttl": 4,
                "enable-fail-over": false,
                "fail-over-ndi-name": "",
                "fail-over-ip-addr": "",
                "enable-web-control": true
            },
            "aac-bitrate-kbps": "128",
            "report": {
                "module-name": "mws_ndi_sink_0",
                "module-type": 34,
                "ndi-name": "PRO-CONVERT-AES67 (test11)",
                "num-clients": 0
            }
        },
        {
            "uid": 9,
            "enable": false,
            "name": "TS over SRT",
            "stream-no": "Stream2",
            "type": "srt",
            "srt": {
                "mode": "listener",
                "dst-ip": "",
                "dst-port": 8000,
                "bind-port": 10000,
                "stream-id": "12/12",
                "connect-timeout": 3000,
                "retry-duration": 3000,
                "latency": 120,
                "bandwidth": 25,
                "mtu": 1500,
                "enc": "disable",
                "passphrase": "",
                "enable-logo": false
            },
            "aac-bitrate-kbps": "128",
            "report": {
                "mode": "listener",
                "module-name": "mws_srt_sink_0",
                "module-type": 114
            }
        }
    ],
    "discovery": [
        {
            "is-ndi": true,
            "ndi-name": "DESKTOP-KN2V7CQ (Intel UHD Graphics 630 1)",
            "ndi-url": "192.168.65.2:5961"
        }
    ],
    "status": 0
}
属性 说明
status 0:执行成功。返回其它值请参考 API 状态码
stream-no-max stream 并发数
streaming-count-max 最大并发数量。
streaming-count 流数量。
streaming[i].uid 唯一ID, 须大于0。
streaming[i].enable 流使能, 有效值true/false。
streaming[i].name 流名称, 长度范围[1, 63]。
streaming[i].stream-no stream选择, 有效值Stream1, Stream2。
streaming[i].type 流协议, 有效值rtsp, srt, ndi。
streaming[i].rtsp.bind-port RTSP 端口。
streaming[i].rtsp.max-client-num RTSP 最大连接数。
streaming[i].rtsp.key RTSP 主码流key, 长度范围[1,63]。
streaming[i].rtsp.enable-auth RTSP 使能Authentication, 有效值true/false。
streaming[i].rtsp.username RTSP Authentication 用户名, 长度范围[0,63]。
streaming[i].rtsp.password RTSP Authentication 密码, 长度范围[0,63]。
streaming[i].rtsp.report RTSP 主码流report 信息。
streaming[i].srt.mode TS over SRT 模式, 支持caller, listener。
streaming[i].srt.dst-ip TS over caller 模式目的IP。
streaming[i].srt.dst-port TS over SRT caller 模式目的, 有效值[1,65535]。
streaming[i].srt.bind-port TS over SRT listener模式绑定端口, 有效值[1,65535]。
streaming[i].srt.stream-id TS over SRT Stream ID, 长度范围[0,63]。
streaming[i].srt.connect-timeout TS over SRT 连接超时,单位ms。
streaming[i].srt.retry-duration TS over SRT 重试等待时间,单位ms。
streaming[i].srt.latency TS over SRT 延时时间,单位ms。
streaming[i].srt.bandwidth TS over SRT 带宽,百分比。
streaming[i].srt.mtu TS over SRT MTU[228, 1500]。
streaming[i].srt.enc TS over SRT 加密方式, 有效值disable,aes-128,aes-192,aes-256。
streaming[i].srt.passphrase TS over SRT 秘钥, 长度范围[1,79]。
streaming[i].srt.enable-logo 显示LOGO, 有效值true/false。
streaming[i].ndi.source-name 视频源名称,默认为设备序列号
streaming[i].ndi.group-name 组名,默认为public
streaming[i].ndi.enable-full 使能NDI Full, 有效值true/false
streaming[i].ndi.audio-standard 音量标准,有效值SMPTE, EBU
streaming[i].ndi.enable-discovery 是否启用发现服务, 有效值true/false
streaming[i].ndi.discovery-server 发现服务器 IP 地址, 长度范围[1,63]
streaming[i].ndi.transport-mode 传输模式,支持udp-unicast,udp-multicast,rudp-unicast,tcp-unicast,tcp-multi
streaming[i].ndi.mcast-addr 组播地址
streaming[i].ndi.mcast-mask 组播掩码
streaming[i].ndi.mcast-ttl TTL, 有效值[1,255]
streaming[i].ndi.enable-fail-over 是否启用备用通道, 有效值true/false
streaming[i].ndi.fail-over-ndi-name 备用通道视频源名称, 长度范围[1,63]
streaming[i].ndi.fail-over-ip-addr 备用通道 IP 地址, 长度范围[1,63]
streaming[i].ndi.enable-web-control 显示 Web 控制, 有效值true/false
streaming[i].aac-bitrate-kbps AAC码率, 支持128,192,256
discovery[i].is-ndi 自动发现的设置是否是NDI, 有效值true/false
discovery[i].ndi-name 自动发现NDI 名称
discovery[i].ndi-url 自动发现NDI 地址

与“”相关结果约

    找不到与“”相关的结果