更新时间:2023-12-29 GMT+08:00

信息订阅

订阅消息帧

表1 订阅信息请求消息帧

参数

是否必须

类型

描述

action

String

"Subscribe"

sequence

String

消息随机序列号,建议长度20-30。

data

SubscribeData object

订阅数据。

表2 SubscribeData数据结构

参数

是否必须

类型

描述

conferenceID

String

会议ID。

subscribeType

Array of strings

订阅类型,含义如下:

"ConfBasicInfoNotify":会议基本信息订阅

"ConfDynamicInfoNotify":会议状态信息订阅

"ParticipantsNotify":在线与会者信息订阅

"AttendeesNotify":预约与会者信息订阅

"SpeakerChangeNotify":发言方状态信息订阅

"NetConditionNotify":会议媒体质量状态订阅

"InviteResultNotify":邀请结果信息订阅

"RealTimeSubtitleNotify": 实时字幕信息订阅

"WaitingListNotify": 等候室成员列表订阅

confToken

String

会控正式Token

订阅消息示例

{
	"sequence": "000000000000000001702459164879",
	"action": "Subscribe",
	"data": "{\"subscribeType\":[\"ConfBasicInfoNotify\",\"ConfDynamicInfoNotify\",\"ParticipantsNotify\",\"AttendeesNotify\",\"SpeakerChangeNotify\",\"NetConditionNotify\",\"CustomMultiPicNotify\",\"InviteResultNotify\",\"InterpreterGroupNotify\",\"NetworkQualityNotify\",\"WaitingListNotify\"],\"confToken\":\"Basic c3RiZjYyMjZlZWU4YjQ4YjllNThmNGRkYWYzMGVlMWE5YzdlZjJhZTU4ZTkzMDI0MzRh\"}"
}

订阅成功消息示例

{
	"action": "Subscribe",
	"sequence": "000000000000000001611747313677",
	"data": {
		"returnCode": 0,
		"returnDesc ": "SUCCESS"
	}
}