1.URL

http://124.223.60.234:8080/system/asset/command/sendBroadcastCommand

2.请求参数

2.1请求头

在Headers里面增加token:对应登录验证成功后,data里面对应的tokenId

2.2.参数示例

{
    "terminalId":"22ECDAC9061B4554A5B3AF6AE05B04DA",
    "broadcastMode":1,
    "channelNo":1,
    "vendorType":1,
    "timeout":20
}

2.3.参数说明

字段 类型 说明 是否必须
terminalId String 系统终端唯一标识 Y
broadcastMode int 0:对讲;1:喊话,只对国标GB28181设备有效 Y
channelNo int 对讲通道号,只对部标JT808设备有效 Y
vendorType int 音频类型(0:G711A;1:G711A-H(带海思头)),只对部标JT808设备有效 Y
timeout int 超时时间,单位:s,如果不填默认15s N

3.接口应答

3.1.返回示例

{
    "code": 200,
    "message": "Operation succeeded",
    "data": {
        "app":"broadcast",
        "stream":"34020000001110000001_34020000001320000001",
        "flv":"http://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001.live.flv",
        "https_flv":"https://apollo.aovx.com:18443/broadcast/34020000001110000001_34020000001320000001.live.flv",
        "ws_flv":"ws://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001.live.flv",
        "wss_flv":"wss://apollo.aovx.com:18443/broadcast/34020000001110000001_34020000001320000001.live.flv",
        "hls":"http://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001/hls.m3u8",
        "https_hls":"https://apollo.aovx.com:18443/broadcast/34020000001110000001_34020000001320000001/hls.m3u8",
        "ws_hls":"ws://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001/hls.m3u8",
        "wss_hls":"wss://apollo.aovx.com:18443/broadcast/34020000001110000001_34020000001320000001/hls.m3u8",
        "ts":"http://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001.live.ts",
        "https_ts":"https://apollo.aovx.com:18443/broadcast/34020000001110000001_34020000001320000001.live.ts",
        "ws_ts":"ws://apollo.aovx.com:8088/broadcast/34020000001110000001_34020000001320000001.live.ts",
        "rtmp":"rtmp://apollo.aovx.com:8935/broadcast/34020000001110000001_34020000001320000001",
        "rtsp":"rtsp://apollo.aovx.com:8554/broadcast/34020000001110000001_34020000001320000001",
        "rtsps":"rtsps://apollo.aovx.com:8332/broadcast/34020000001110000001_34020000001320000001",
        "rtc":"http://apollo.aovx.com:8088/index/api/webrtc?app=broadcast&stream=34020000001110000001_34020000001320000001&type=push",
        "rtcs":"https://apollo.aovx.com:18443/index/api/webrtc?app=broadcast&stream=34020000001110000001_34020000001320000001&type=push",
    }
}

3.2.返回结果说明

字段 类型 说明
code int 返回状态
message String 返回结果描述
data object 返回结果体,拉流地址集合,其中rtc:语音对讲推流地址;rtcs:基于ssl的语音对讲推流地址,其他都为各个方式的拉流地址

4.请求示例

作者:admin  创建时间:2024-06-22 11:46
最后编辑:admin  更新时间:2025-06-27 22:39