@xylink/xy-rtc-sdk 3.8.0-beta.6 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1,38 +1,38 @@
1
- # XYLINK WEBRTC SDK
2
-
3
- ## 介绍
4
-
5
- XY RTC Web SDK 是小鱼易连音视频通讯解决方案的Web端SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XY RTC Web SDK 提供的 API 建立连接,控制实时多人音视频通话。
6
-
7
- 目前 XY RTC Web SDK 主要支持 Chrome v72+ 和 Edge v80+ 浏览器。
8
- ## 安装
9
- ``` bash
10
- # 通过 Yarn 安装
11
- $ yarn add @xylink/xy-rtc-sdk
12
-
13
- # 通过 Npm 安装
14
- $ npm install @xylink/xy-rtc-sdk --save
15
- ```
16
- ## 示例
17
-
18
- > **注意**:请务必使用 HTTPS 协议或者 localhost 开发、测试,否则无法正常使用 XY RTC SDK 进行加入会议操作;
19
-
20
-
21
- ```bash
22
- import xyRTC from "@xylink/xy-rtc-sdk";
23
-
24
- const client = xyRTC.createClient();
25
- ```
26
-
27
-
28
- 具体可参考[详细API文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
29
- ## 开源示例项目
30
- 我们在 GitHub 上提供了开源的示例项目供你参考。
31
-
32
- - Vue 版本:https://github.com/xylink-com/xylink-rtc-vue-demo
33
- - React 版本:https://github.com/xylink-com/xylink-rtc-demo
34
-
35
-
36
- 如果你是第一次集成 XY RTC SDK 产品,你可以使用我们基于 SDK 实现的产品进行体验:[小鱼 Web 会议](https://cdn.xylink.com/webrtc/web/index.html#/)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为你的一种参考方式。
37
- ## 版本更新内容
1
+ # XYLINK WEBRTC SDK
2
+
3
+ ## 介绍
4
+
5
+ XY RTC Web SDK 是小鱼易连音视频通讯解决方案的Web端SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XY RTC Web SDK 提供的 API 建立连接,控制实时多人音视频通话。
6
+
7
+ 目前 XY RTC Web SDK 主要支持 Chrome v72+ 和 Edge v80+ 浏览器。
8
+ ## 安装
9
+ ``` bash
10
+ # 通过 Yarn 安装
11
+ $ yarn add @xylink/xy-rtc-sdk
12
+
13
+ # 通过 Npm 安装
14
+ $ npm install @xylink/xy-rtc-sdk --save
15
+ ```
16
+ ## 示例
17
+
18
+ > **注意**:请务必使用 HTTPS 协议或者 localhost 开发、测试,否则无法正常使用 XY RTC SDK 进行加入会议操作;
19
+
20
+
21
+ ```bash
22
+ import xyRTC from "@xylink/xy-rtc-sdk";
23
+
24
+ const client = xyRTC.createClient();
25
+ ```
26
+
27
+
28
+ 具体可参考[详细API文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
29
+ ## 开源示例项目
30
+ 我们在 GitHub 上提供了开源的示例项目供你参考。
31
+
32
+ - Vue 版本:https://github.com/xylink-com/xylink-rtc-vue-demo
33
+ - React 版本:https://github.com/xylink-com/xylink-rtc-demo
34
+
35
+
36
+ 如果你是第一次集成 XY RTC SDK 产品,你可以使用我们基于 SDK 实现的产品进行体验:[小鱼 Web 会议](https://cdn.xylink.com/webrtc/web/index.html#/)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为你的一种参考方式。
37
+ ## 版本更新内容
38
38
  具体可查看[发版说明文档](https://openapi.xylink.com/common/meeting/doc/version?platform=web)。
@@ -4,13 +4,13 @@ export interface ICommonParams {
4
4
  securityKey: string;
5
5
  }
6
6
  declare class Action {
7
+ private commonParams;
8
+ private randomDeviceSN;
7
9
  private http;
8
10
  private logHttp;
9
11
  private meetingInfo;
10
12
  private seqId;
11
13
  private statesTime;
12
- commonParams: ICommonParams;
13
- randomDeviceSN: string;
14
14
  private httpDefaultBaseUrl;
15
15
  private logHttpDefaultBaseUrl;
16
16
  constructor();
@@ -24,12 +24,6 @@ declare class Action {
24
24
  setMeetingInfo(info: IMeetingInfo): void;
25
25
  setLoginInfo(loginInfo: IToken | null): void;
26
26
  getLoginInfo(): IToken;
27
- /**
28
- * 设置默认参数,如securityKey
29
- *
30
- * @param data
31
- */
32
- setCommonParams: (data: any) => void;
33
27
  /**
34
28
  * 日志上传
35
29
  *
@@ -37,13 +31,6 @@ declare class Action {
37
31
  * @returns
38
32
  */
39
33
  upload(data: any): Promise<any>;
40
- /**
41
- * 获取公钥,加密登录需使用此公钥
42
- *
43
- * @param { string } account 小鱼账号
44
- * @returns
45
- */
46
- getPublicKey(account: string): Promise<any>;
47
34
  /**
48
35
  * 不加密登录
49
36
  *
@@ -56,13 +43,6 @@ declare class Action {
56
43
  * @param { ISdkUserInfo } sdkUserInfo 小鱼账号
57
44
  */
58
45
  encryptLogin(sdkUserInfo: ISdkUserInfo): Promise<any>;
59
- /**
60
- * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
61
- *
62
- * @param data
63
- * @returns
64
- */
65
- customLogin: (data: any) => Promise<any>;
66
46
  /**
67
47
  * 获取匿名账号
68
48
  *
@@ -79,7 +59,11 @@ declare class Action {
79
59
  /**
80
60
  * 获取云会议室信息
81
61
  *
82
- * @param params
62
+ * @param { Object } params
63
+ * @param { string } number 会议号
64
+ * @param { string } deviceType 设备类型
65
+ * @param { string } country 国际化
66
+ *
83
67
  * @returns
84
68
  */
85
69
  getCallUri(params: {
@@ -98,13 +82,13 @@ declare class Action {
98
82
  /**
99
83
  * 举手发言
100
84
  *
101
- * @param { string } type
102
- * @param { string } meetingId
103
- * @param { string } di
85
+ * @param { 'handup' | 'handdown' | 'mute' } type 操作类型
86
+ * @param { string } meetingId 会议ID
87
+ * @param { string } di callerUri
104
88
  * @param { string } conferenceNo 会议号
105
89
  * @returns
106
90
  */
107
- hand(type: string, meetingId: string, di: string, conferenceNo: string): Promise<any>;
91
+ hand(type: 'handup' | 'handdown' | 'mute', meetingId: string, di: string, conferenceNo: string): Promise<any>;
108
92
  /**
109
93
  * 获取i18n/errorcode等链接
110
94
  *
@@ -162,34 +146,42 @@ declare class Action {
162
146
  /**
163
147
  * 获取会议室水印
164
148
  *
165
- * @param { string } conferenceNumber
149
+ * @param { string } conferenceNumber 会议号
166
150
  * @returns
167
151
  */
168
- getWatermarkContent: (conferenceNumber: string) => Promise<any>;
152
+ getWatermarkContent(conferenceNumber: string): Promise<any>;
169
153
  /**
170
154
  * 根据外部企业ID获取内部企业ID
171
155
  *
172
- * @param param0
156
+ * @param { Object } params
157
+ * @param { string } params.extId 企业ID
158
+ * @param { string } params.clientId
159
+ * @param { string } params.clientSecret
160
+ * @param { string } params.httpServer 服务器地址
173
161
  * @returns
174
162
  */
175
- getEnterpriseId: ({ extId, clientId, clientSecret, httpServer }: {
163
+ getEnterpriseId({ extId, clientId, clientSecret, httpServer }: {
176
164
  extId: string;
177
165
  clientId: string;
178
166
  clientSecret: string;
179
- httpServer?: string | undefined;
180
- }) => Promise<any>;
167
+ httpServer?: string;
168
+ }): Promise<any>;
181
169
  /**
182
170
  * WebRTC 内外网探测
183
171
  *
184
- * @param param0
172
+ * @param { Object } params
173
+ * @param { string } params.extId 企业ID
174
+ * @param { string } params.clientId
175
+ * @param { string } params.clientSecret
176
+ * @param { string } params.httpServer 服务器地址
185
177
  * @returns
186
178
  */
187
- locator: ({ extId, clientId, clientSecret, httpServer }: {
179
+ locator({ extId, clientId, clientSecret, httpServer }: {
188
180
  extId: string;
189
181
  clientId: string;
190
182
  clientSecret: string;
191
- httpServer?: string | undefined;
192
- }) => Promise<any>;
183
+ httpServer?: string;
184
+ }): Promise<any>;
193
185
  /**
194
186
  * 监会操作
195
187
  *
@@ -232,32 +224,69 @@ declare class Action {
232
224
  /**
233
225
  * 获取企业管理平台带宽配置
234
226
  *
227
+ * @param { number } userId 用户ID
235
228
  * @returns
236
229
  */
237
230
  getWebRxBandwidth(userId: number): Promise<any>;
238
231
  /**
239
232
  * 刷新Token
240
233
  *
234
+ * @param { string } refresh_token 待刷新的token
241
235
  * @returns
242
236
  */
243
237
  refreshToken(refresh_token: string): Promise<any>;
244
238
  /**
245
239
  * 获取会议邀请链接信息
240
+ *
241
+ * @param { IMeetingInviteParams } params 邀请链接请求参数
242
+ *
243
+ * @returns
246
244
  */
247
245
  getMeetingInviteInfo(params: IMeetingInviteParams): Promise<any>;
248
246
  /**
249
247
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
248
+ *
249
+ * @param { number } userId 用户ID
250
+ * @returns
250
251
  */
251
252
  getCloudMeetingRooms(userId: number): Promise<any>;
252
253
  /**
253
254
  * 获取参会者头像
254
255
  *
255
- * @param { string } callUrl
256
+ * @param { string } callUrl 待获取头像的参会者callUri
257
+ * @returns
256
258
  */
257
259
  getInComingCallUrlInfo(callUrl: string): Promise<{
258
260
  avatar: string;
259
261
  }>;
262
+ /**
263
+ * 通知会控打开/关闭摄像头结果
264
+ *
265
+ * @param { 'muteVideo' | 'unMuteVideo' } type 操作类型
266
+ * @param { string } value 操作详细数据
267
+ * @returns
268
+ */
260
269
  sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', value: string): Promise<any>;
270
+ /**
271
+ * 设置默认参数,如securityKey
272
+ *
273
+ * @param { Object } data
274
+ */
275
+ private setCommonParams;
276
+ /**
277
+ * 获取公钥,加密登录需使用此公钥
278
+ *
279
+ * @param { string } account 小鱼账号
280
+ * @returns
281
+ */
282
+ private getPublicKey;
283
+ /**
284
+ * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
285
+ *
286
+ * @param data
287
+ * @returns
288
+ */
289
+ private customLogin;
261
290
  }
262
291
  declare const _default: Action;
263
292
  export default _default;
@@ -118,4 +118,5 @@ export declare const MEETING_CONTROL_PLATFORM: {
118
118
  PC: string;
119
119
  MOBILE: string;
120
120
  SIDE: string;
121
+ PROFESSIONAL: string;
121
122
  };
@@ -14,6 +14,8 @@ export declare const DEVICE_TYPE = 17;
14
14
  export declare const SELF_MOCK_PID = 9999999999;
15
15
  export declare const STREAM_CHANNEL_COUNT = 11;
16
16
  export declare const MAX_PARTICIPANT_COUNT = 112;
17
+ export declare const MAX_CUSTOM_MESSAGE_LEN = 1846666;
18
+ export declare const MAX_CUSTOM_MESSAGE_LOG_LEN = 13333;
17
19
  export declare const STREAM_ERROR_CODE_MAP: string[];
18
20
  /**
19
21
  * 支持呼叫的会议室类型
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-23 12:04:44
6
6
  */
7
- import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult } from '../type';
7
+ import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig } from '../type';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -75,6 +75,7 @@ export default class Client extends Emitter {
75
75
  private featureConfig;
76
76
  private meeting;
77
77
  private speakerInfos;
78
+ private operateQueue;
78
79
  private onDocumentChange;
79
80
  constructor(config: IClientConfig, logger: Logger);
80
81
  static instance: Client;
@@ -174,6 +175,7 @@ export default class Client extends Emitter {
174
175
  * @property { boolean } config.enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
175
176
  * @property { boolean } config.enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
176
177
  * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
178
+ * @property { boolean } config.enableMobileNotAuth 是否启用移动端无授权入会,默认不启用,设置为false;
177
179
  * @returns { IResult }
178
180
  */
179
181
  setFeatureConfig(config: IFeatureConfig): import("../type").IReturnResult | undefined;
@@ -571,6 +573,12 @@ export default class Client extends Emitter {
571
573
  * @param { boolean } status peer连接状态
572
574
  */
573
575
  setPeerConnectionStatus(status: boolean): void;
576
+ /**
577
+ * 处理会议室静音状态
578
+ *
579
+ * @param { string } automute // "" | "mute" | "forcemute" 会议室静音属性
580
+ */
581
+ private handleAutoMute;
574
582
  /**
575
583
  * 根据 autoMute 或 muteOperation 的值发送音频流
576
584
  *
@@ -592,6 +600,16 @@ export default class Client extends Emitter {
592
600
  * @param { ISubTitle } data 字幕、点名消息
593
601
  */
594
602
  private onSubTitle;
603
+ /**
604
+ * 发送自定义消息
605
+ *
606
+ * @public
607
+ * @param { object } config - 配置参数
608
+ * @param { number } config.toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
609
+ * @param { string } config.data - 消息内容,JSON字符串;因业务数据可能会传输图片,需要对二进制数据进行base64编码,消息长度限制最大:1030KB
610
+ * @return { { code: string, message: string, data: null | object } } 返回结果
611
+ */
612
+ sendCustomMessage(config: ICustomMessageConfig): import("../type").IReturnResult;
595
613
  /**
596
614
  * 处理媒体消息
597
615
  *
@@ -612,6 +630,12 @@ export default class Client extends Emitter {
612
630
  * @param { IConfProperty } info
613
631
  */
614
632
  private handleContentOnhold;
633
+ /**
634
+ * 处理等候室状态
635
+ *
636
+ * @param { IWaitingState } data
637
+ */
638
+ private handleWaitingState;
615
639
  /**
616
640
  * 是否开启自动调整带宽
617
641
  *
@@ -686,6 +710,12 @@ export default class Client extends Emitter {
686
710
  * @param { boolean | string } status
687
711
  */
688
712
  sendAudioStatus(status: boolean | string): void;
713
+ /**
714
+ * 推送本地Video状态
715
+ *
716
+ * @param { boolean | string } status
717
+ */
718
+ sendVideoStatus(status: boolean | string): void;
689
719
  /**
690
720
  * 发布 自动布局/自定义布局 layout布局信息(参会人最新的布局列表数据)
691
721
  *
@@ -6,7 +6,7 @@
6
6
  * @email luojinghui424@gmail.com
7
7
  *
8
8
  * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2022-11-03 15:48:52
9
+ * Last modified : 2023-01-12 11:18:44
10
10
  */
11
11
  import Logger from '../tools/logger';
12
12
  import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
@@ -14,7 +14,7 @@ import Client from './client';
14
14
  export default class LayoutManager {
15
15
  logger: Logger;
16
16
  client: Client;
17
- customLayoutList: Map<string, ILayout>;
17
+ customLayoutMap: Map<string, ILayout>;
18
18
  layoutList: Map<string, ILayout>;
19
19
  private videoManagers;
20
20
  private originOrderRosters;
@@ -142,7 +142,7 @@ export default class LayoutManager {
142
142
  */
143
143
  calcRequestNewLayout(pageInfo?: IPageInfo): void;
144
144
  /**
145
- * [AUTO] : 基于 new layout result 消息生成 customLayoutList 数据,并diff对比更新数据
145
+ * [AUTO] : 基于 new layout result 消息生成 customLayoutMap 数据,并diff对比更新数据
146
146
  *
147
147
  * @public
148
148
  * @param { ILayoutRoster[] } totalLayoutResultList
@@ -157,7 +157,7 @@ export default class LayoutManager {
157
157
  private createOrderRoster;
158
158
  createCustomLayout(totalLayoutResultList: ILayoutRoster[]): void;
159
159
  /**
160
- * 根据 reqList 计算最新的 layout 数据
160
+ * 根据 reqList 计算最新的 layout 数据(2.0.2以前的版本方法)
161
161
  *
162
162
  * @param reqList
163
163
  */
@@ -179,7 +179,7 @@ export default class LayoutManager {
179
179
  height: number;
180
180
  rateHeight: number;
181
181
  rateWidth: number;
182
- };
182
+ } | undefined;
183
183
  createLayout(): void;
184
184
  calculateOrderRosterList(): IRoster[];
185
185
  switchLayout(templateMode?: IMode): IMode;
@@ -8,6 +8,7 @@ declare class QualityManager {
8
8
  private layoutManager;
9
9
  private previousInternals;
10
10
  private internals;
11
+ private participantCount;
11
12
  constructor(client: Client, layoutManager: LayoutManager);
12
13
  /**
13
14
  * 定时上报会议质量、网络数据
@@ -152,7 +152,7 @@ export default class Stream extends Emitter {
152
152
  * 无流入会
153
153
  *
154
154
  * @private
155
- * @param status
155
+ * @param { IStatus } status
156
156
  * @returns
157
157
  */
158
158
  private dealWithoutStreams;
@@ -0,0 +1,10 @@
1
+ declare type AsyncFn<T> = (...args: any[]) => Promise<T>;
2
+ declare type Fn = (...args: any) => void;
3
+ declare class Queue<T> {
4
+ private isRunning;
5
+ private waitingQueue;
6
+ constructor();
7
+ addTask(task: AsyncFn<T>): Promise<T>;
8
+ execute(task: AsyncFn<T>, resolve: Fn, reject: Fn): void;
9
+ }
10
+ export default Queue;
@@ -52,7 +52,7 @@ export declare const getMeetingStatus: (success: boolean, code?: string, msg?: s
52
52
  success: boolean;
53
53
  data: {
54
54
  code: string;
55
- msg: string | undefined;
55
+ msg: string;
56
56
  };
57
57
  } | {
58
58
  success: boolean;
@@ -68,4 +68,5 @@ export declare const TYPEOF: {
68
68
  isArray(arr: any): boolean;
69
69
  isString(str: any): boolean;
70
70
  isBoolean(str: any): boolean;
71
+ isUndefined(str: any): boolean;
71
72
  };
@@ -275,7 +275,7 @@ export interface ILayoutParams {
275
275
  * @property { number } resolution.normal - 正常分辨率
276
276
  * @property { number } resolution.low - 低性能模式分辨率
277
277
  * @property { number } zIndex - 层级
278
- * @property { boolean } isContent - 是否是共享内容
278
+ * @property { string } type - 类型,LOCAL/CONTENT
279
279
  */
280
280
  export declare type ITemplateObj = {
281
281
  position: number[];
@@ -284,7 +284,7 @@ export declare type ITemplateObj = {
284
284
  low: IResolutionType;
285
285
  };
286
286
  zIndex?: number;
287
- isContent?: boolean;
287
+ type?: string;
288
288
  };
289
289
  export interface ITypeTemplate {
290
290
  [id: string]: ITemplateObj[];
@@ -759,8 +759,8 @@ export interface ILayoutRoster {
759
759
  /**
760
760
  * Conf Change消息
761
761
  *
762
- * @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量
763
- * @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量
762
+ * @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量,包含local
763
+ * @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
764
764
  * @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
765
765
  * @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
766
766
  * @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
@@ -834,6 +834,7 @@ export interface ILayout {
834
834
  deal?: boolean;
835
835
  zIndex?: number;
836
836
  avatar?: string;
837
+ index?: number;
837
838
  }
838
839
  /**
839
840
  * Local布局对象
@@ -1170,6 +1171,30 @@ export interface ITranslationContent {
1170
1171
  srcLang: string;
1171
1172
  targetLang: string;
1172
1173
  }
1174
+ /**
1175
+ * 用户自定义消息
1176
+ *
1177
+ * @property { number } toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
1178
+ * @property { string } data - 消息内容,可以被JSON序列化的字符串;因业务数据可能会传输图片,需要进行base64编码,消息最大长度限制:1MB
1179
+ */
1180
+ export interface ICustomMessageConfig {
1181
+ toPid: number;
1182
+ data: string;
1183
+ }
1184
+ /**
1185
+ * 接收到自定义消息
1186
+ *
1187
+ * @property { string } type - 消息Type
1188
+ * @property { number } fromPid - 消息的发送方pid
1189
+ * @property { number } toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
1190
+ * @property { string } data - 消息内容,可以被JSON序列化的字符串;
1191
+ */
1192
+ export interface IReceiveCustomMessage {
1193
+ type: string;
1194
+ fromPid: number;
1195
+ toPid: number;
1196
+ data: string;
1197
+ }
1173
1198
  /**
1174
1199
  * SDK功能控制开关,用于内部是否启用某些功能的运行
1175
1200
  * 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
@@ -1184,6 +1209,7 @@ export interface ITranslationContent {
1184
1209
  * @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
1185
1210
  * @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
1186
1211
  * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
1212
+ * @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false;
1187
1213
  */
1188
1214
  export interface IFeatureConfig {
1189
1215
  enableMeetingShout?: boolean;
@@ -1196,6 +1222,7 @@ export interface IFeatureConfig {
1196
1222
  enableLowResolution?: boolean;
1197
1223
  enableSpeakerInfo?: boolean;
1198
1224
  enableLayoutAvatar?: boolean;
1225
+ enableMobileNotAuth?: boolean;
1199
1226
  }
1200
1227
  export interface IConfMgmtUrl {
1201
1228
  pc: string;
@@ -1318,10 +1345,20 @@ export interface SpeakersInfoObj {
1318
1345
  /**
1319
1346
  * 实时讲话人消息体
1320
1347
  *
1321
- * @property { speakersInfoObj[] } speakerInfo - 讲话者信息
1348
+ * @property { speakersInfoObj[] } speakersInfo - 讲话者信息
1322
1349
  *
1323
1350
  */
1324
1351
  export interface SpeakersInfo {
1325
- speakerInfo: SpeakersInfoObj[];
1352
+ speakersInfo: SpeakersInfoObj[];
1353
+ }
1354
+ /**
1355
+ * 等候室状态
1356
+ *
1357
+ * @property { number } waitingState 等候室状态 0: 未在等候室; 1:在等候室
1358
+ * @property { string } automute 是否静音
1359
+ */
1360
+ export interface IWaitingState {
1361
+ waitingState: number;
1362
+ automute: string;
1326
1363
  }
1327
1364
  export {};
@@ -11,3 +11,4 @@ export * from './stream';
11
11
  export * from './device';
12
12
  export * from './action';
13
13
  export * from './meeting';
14
+ export * from './layout';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 模板对应位置类型
3
+ *
4
+ * @enum
5
+ * @property {LOCAL} LOCAL 本地
6
+ * @property {CONTENT} CONTENT 共享画面
7
+ */
8
+ export declare const TEMPLATE_TYPE: {
9
+ LOCAL: string;
10
+ CONTENT: string;
11
+ };