1.URL

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

2.请求参数

2.1请求头

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

2.2.参数示例

{
    "deviceId":"34020000001110000002",
    "channelId":"34020000001310000001",
    "broadcastMode":1,
    "timeout":30
}

2.3.参数说明

字段 类型 描述 是否必填
deviceId String 设备ID Y
channelId String 通道号 Y
broadcastMode int 1:喊话;0:对讲,默认都是1,这里可以暂时固定1 N
timeout int 响应超时时间,默认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的语音对讲推流地址,其他都为各个方式的拉流地址
作者:admin  创建时间:2024-11-11 10:52
最后编辑:admin  更新时间:2025-04-23 17:26