直播推流回调

触发条件:在直播推流开始、推流结束时

1. 输出参数

参数 类型 说明
eventType String push_start:推流开始,push_stop:推流结束
eventTime Long 事件产生时间,毫秒时间戳
data Json 直播数据

data 参数说明

参数 类型 说明
eventId Long 日程Id,对应一场预约的直播
conferenceId String 预约会议ID
title String 直播标题
hostId Long 主持人ID
startTime Long 直播预约开始时间,秒时间戳
endTime Long 直播预约结束时间,秒时间戳
livePullUrl Array 直播拉流信息,同时推多个平台会有多条,每个元素一个直播平台的拉流信息

livePullUrl 参数说明

参数 类型 说明
rtmp_url String rtmp协议拉流地址
flv_url String flv协议拉流地址
hls_url String hls协议拉流地址
provider String 直播平台名称, netease:网易,tencent:腾讯,ali:阿里, ks: 金山,quanshi:全时
layoutType Int 1: PC布局(默认),2:移动竖屏(用于二期扩展)
url_expire_time Long 过期时间

1.1 推流开始

示例

{
    "data": {
        "eventId": 557512,
        "conferenceId": "239704237",
        "title": "event--0330007",
        "hostId": 88406965,
        "startTime": 1648623525,
        "endTime": 1648630725,
        "livePullUrl": [
            {
                "rtmp_url": "rtmp://live-play-ks2-test.quanshi.com/live2/153857_239704237_1_ks?t=1648793319&k=7285cb14274cd530",
                "flv_url": "http://live-play-ks3-test.quanshi.com/live2/153857_239704237_1_ks.flv?t=1648793319&k=85bcc4fab027e2dc",
                "hls_url": "http://live-play-ks-test.quanshi.com/live2/153857_239704237_1_ks/index.m3u8?t=1648793319&k=e3d6f0073e8afe49",
                "web_rtc": "",
                "provider": "ks",
                "layout_type": 1,
                "url_expire_time": 1648793319,
                "push_duration": 0
            },
            {
                "rtmp_url": "rtmp://v0cc07109.live.126.net/live/7bbcc619ed374d6bb3fcfc17ae1b5034",
                "flv_url": "http://flv0cc07109.live.126.net/live/7bbcc619ed374d6bb3fcfc17ae1b5034.flv?netease=flv0cc07109.live.126.net",
                "hls_url": "http://pullhls0cc07109.live.126.net/live/7bbcc619ed374d6bb3fcfc17ae1b5034/playlist.m3u8",
                "web_rtc": "",
                "provider": "netease",
                "layout_type": 1,
                "url_expire_time": 0,
                "push_duration": 0
            },
            {
                "rtmp_url": "rtmp://live-play-tx-test.quanshi.com/live/153857_239704237_1_tencent?txSecret=d73ff53ac51eb921fa8f0201493fb319&txTime=624696E7",
                "flv_url": "http://live-play-tx-test.quanshi.com/live/153857_239704237_1_tencent.flv?txSecret=d73ff53ac51eb921fa8f0201493fb319&txTime=624696E7",
                "hls_url": "http://live-play-tx-test.quanshi.com/live/153857_239704237_1_tencent.m3u8?txSecret=d73ff53ac51eb921fa8f0201493fb319&txTime=624696E7",
                "web_rtc": "",
                "provider": "tencent",
                "layout_type": 1,
                "url_expire_time": 1648793319,
                "push_duration": 0
            },
            {
                "rtmp_url": "",
                "flv_url": "",
                "hls_url": "",
                "web_rtc": "webrtc://live-pull-test.quanshi.com/live/153857_239704237_1_quanshi",
                "provider": "quanshi",
                "layout_type": 1,
                "url_expire_time": 0,
                "push_duration": 0
            }
        ]
    },
    "eventTime": 1648620519271,
    "eventType": "push_start"
}

1.2 推流结束

示例

{
    "data": {
        "eventId": 557512,
        "conferenceId": "239704237",
        "title": "event--0330007",
        "hostId": 88406965,
        "startTime": 1648623525,
        "endTime": 1648630725
    },
    "eventTime": 1648620849438,
    "eventType": "push_stop"
}