/api/tx/live-apply 接口

TX 流设置

请求方式

POST /api/tx/live-apply
属性 说明
uid 唯一ID, 须大于0。
enable 流使能, 有效值true/false。
name 流名称, 长度范围[1, 63]。
stream-no stream选择, 有效值Stream1, Stream2。
type 流协议, 有效值rtsp, srt, ndi。
rtsp.bind-port RTSP 端口。
rtsp.max-client-num RTSP 最大连接数。
rtsp.key RTSP 主码流key, 长度范围[1,63]。
rtsp.enable-auth RTSP 使能Authentication。
rtsp.username RTSP Authentication 用户名, 长度范围[0,63]。
rtsp.password RTSP Authentication 密码, 长度范围[0,63]。
rtsp.report RTSP 主码流report 信息。
srt.mode TS over SRT 模式, 支持caller, listener。
srt.dst-ip TS over caller 模式目的IP。
srt.dst-port TS over SRT caller 模式目的端口, 有效值[1,65535]。
srt.bind-port TS over SRT listener模式绑定端口, 有效值[1,65535]。
srt.stream-id TS over SRT Stream ID, 长度范围[0,63]。
srt.connect-timeout TS over SRT 连接超时,单位ms。
srt.retry-duration TS over SRT 重试等待时间,单位ms。
srt.latency TS over SRT 延时时间,单位ms。
srt.bandwidth TS over SRT 带宽,百分比。
srt.mtu TS over SRT MTU[228, 1500]。
srt.enc TS over SRT 加密方式, 有效值disable,aes-128,aes-192,aes-256。
srt.passphrase TS over SRT 秘钥, 长度范围[1,79]。
srt.enable-logo 显示LOGO, 有效值true/false。
ndi.source-name 视频源名称,默认为设备序列号
ndi.group-name 组名,默认为public
ndi.enable-full 使能NDI Full, 有效值true/false
ndi.audio-standard 音量标准,有效值SMPTE, EBU
ndi.enable-discovery 是否启用发现服务, 有效值true/false
ndi.discovery-server 发现服务器 IP 地址
ndi.transport-mode 传输模式,支持udp-unicast,udp-multicast,rudp-unicast,tcp-unicast,tcp-multi
ndi.mcast-addr 组播地址
ndi.mcast-mask 组播掩码
ndi.mcast-ttl TTL, 有效值[1,255]
ndi.enable-fail-over 启用备用通道, 有效值true/false
ndi.fail-over-ndi-name 备用通道视频源名称, 长度范围[1,63]
ndi.fail-over-ip-addr 备用通道 IP 地址, 长度范围[1,63]
ndi.enable-web-control 显示 Web 控制, 有效值true/false
aac-bitrate-kbps AAC码率, 支持128,192,256

e.g.

// SRT
{
    "uid": 9,
    "enable": true,
    "name": "TS over SRT",
    "type": "srt",
    "srt": {
        "select": 0,
        "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": ""
    },
    "aac-bitrate-kbps": "128"
}

// NDI
{
    "uid": 11,
    "enable": true,
    "name": "NDI",
    "type":"ndi",
    "ndi": {
        "source-name": "test11",
        "group-name": "public",
        "enable-discovery": false,
        "discovery-server": "",
        "transport-mode": "tcp-unicast",
        "mcast-ttl": 4,
        "mcast-addr": "",
        "mcast-mask": "",
        "enable-fail-over": false,
        "fail-over-ndi-name": "",
        "fail-over-ip-addr": "",
        "enable-web-control": true
    },
    "aac-bitrate-kbps": "128"
}

返回数据

{
    "status": 0
}
属性 说明
status 0:执行成功。返回其它值请参考 API 状态码

与“”相关结果约

    找不到与“”相关的结果