获取推拉流信息

1. 接口描述

接口名称:

/eventopenapi/event/pull/info

发送方式:

POST

参数格式:

accept: application/json;content-type: application/json

2. 输入参数

参数 类型 必须 说明
token String 统一鉴权token
eventId Long 直播会议ID
includePush Int 是否需要推流地址:1 需要,0不需要(默认)

3. 输出参数

参数 类型 说明
timeStamp Long 返回时间(时间戳,单位毫秒)
requestId String 请求ID(在接口异常时, 需提供请求ID)
code Int 返回的状态码
msg String 当返回结果的状态码不为200时,包含的错误信息
data json 返回数据

data 参数说明

参数 类型 说明
eventId Long 直播会议ID
livePullUrl Array 拉流列表
pushInfo json 推流信息

pushInfo 参数说明

参数 类型 说明
pushRtmpUrl String 推流地址
pushRtmpSign String 推流密钥

livePullUrl 参数说明

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

4. 示例

输入示例

{
    "token":"5d41c4ac806c6440eb6aa8e071115f2b",
    "eventId": 554410,
    "includePush":1
}

输出示例

{
    "timeStamp": 1703757001715,
    "code": 200,
    "msg": "Successfully to get the event pull info!",
    "data": {
        "eventId": 647493,
        "livePullUrl": [
            {
                "rtmp_url": "rtmp://live-play-tx-test.quanshi.com/live/153857_239827212_1_tencent?txSecret=432964c0354b38d0e586cb3227bc33c4&txTime=658FE7C9",
                "flv_url": "http://live-play-tx-test.quanshi.com/live/153857_239827212_1_tencent.flv?txSecret=432964c0354b38d0e586cb3227bc33c4&txTime=658FE7C9",
                "hls_url": "http://live-play-tx-test.quanshi.com/live/153857_239827212_1_tencent.m3u8?txSecret=432964c0354b38d0e586cb3227bc33c4&txTime=658FE7C9",
                "provider": "tencent",
                "layout_type": 1,
                "url_expire_time": 1703929801
            },
            {
                "rtmp_url": "rtmp://v0cc07109.live.126.net/live/ed4315c594f54003ad60552f9aea0690",
                "flv_url": "http://flv0cc07109.live.126.net/live/ed4315c594f54003ad60552f9aea0690.flv?netease=flv0cc07109.live.126.net",
                "hls_url": "http://pullhls0cc07109.live.126.net/live/ed4315c594f54003ad60552f9aea0690/playlist.m3u8",
                "provider": "netease",
                "layout_type": 1,
                "url_expire_time": 0
            },
            {
                "rtmp_url": "rtmp://live-pull-test.quanshi.com:1936/live/153857_239827212_1_quanshi",
                "flv_url": "http://live-pull-test.quanshi.com/live/153857_239827212_1_quanshi.flv",
                "hls_url": "http://live-pull-test.quanshi.com/live/153857_239827212_1_quanshi.m3u8",
                "provider": "quanshi",
                "layout_type": 1,
                "url_expire_time": 0
            }
        ],
        "pushInfo": {
            "pushRtmpSign": "153857_239827212_1?env=test",
            "pushRtmpUrl": "rtmp://live-push-test.quanshi.com:1937/forward/"
        }
    },
    "requestId": "10.255.0.105-1703757001638.3281268"
}