有奖捉虫:办公协同&微信生态&物联网文档专题 HOT

接口描述

描述:可根据会议 ID 在会前,会中和会后查询直播推流地址,支持会议创建者,主持人与联席主持人查询直播推流地址。暂不支持 OAuth2.0 鉴权访问。
请求方式:GET
接口请求域名
https://api.meeting.qq.com/v1/meetings/{meeting_id}/live-play/push-stream-info

输入参数

HTTP 请求头公共参数参考签名验证章节里的 公共参数说明
参数名称
必选
参数类型
参数描述
operator_id
String
操作者 ID,根据 operator_id_type 的值,使用不同的类型。
operator_id_type
Integer
操作者 ID 的类型:
1:userid
instanceid
Integer
用户的终端设备类型:
0:PSTN
1:PC
2:Mac
3:Android
4:iOS
5:Web
6:iPad
7:Android Pad
8:小程序
9:voip、sip 设备
10:linux
20:Rooms for Touch Windows
21:Rooms for Touch MacOS
22:Rooms for Touch Android
30:Controller for Touch Windows
32:Controller for Touch Android
33:Controller for Touch iOS
创建会议时 userid 对应的设备类型,不影响入会时使用的设备类型,缺省可填1。

输出参数

参数名称
必选
参数类型
参数描述
push_stream_info
直播推流信息 对象列表
直播推流信息 对象列表


直播推流信息 对象

参数名称
参数类型
参数描述
platform_type
Integer
推流平台类型:
1:微信视频号平台
2:第三方推流平台
enable_push_addres
Boolean
是否启用该推流地址,默认值为 false。
true:开启
false:不开启
push_address
String
推流地址。
push_password
String
推流密钥。
platform_name
String
平台名称

错误码列表

状态码
错误码
错误描述
500
400007
无权限,需要会议创建者、主持人。

示例

输入示例

GET
https://api.meeting.qq.com/v1/meetings/7424270435941489244/live-play/push-stream-info?operator_id=afagsagwags&operator_id_type=1&instanceid=1
{
"operator_id": "afagsagwags",
"operator_id_type": 1,
"instanceid": 1
}

输出示例

{
"push_stream_info":[
{
"platform_name":"dGVzdDEyMw==",
"platform_type":1,
"push_password":"123123123123123",
"enable_push_addres":true,
"push_address":"rtmp://123123.123live.123.com/trtc_1451297868/"
},
{
"platform_name":"MTIzdGVzdA==",
"platform_type":2,
"push_password":"123123123123321",
"enable_push_addres":true,
"push_address":"rtmp://321.321.fs.tv/123live/"
}
]
}