@xylink/xy-rtc-sdk 2.0.1-beta.9 → 2.0.3-beta.12

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.
@@ -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, IInvite, IMeetingControl, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, ISdkUserInfo, IPublishParams, ICustomLayout, ICustomStreamTrack, ISubTitle, IInternels, IVideoAudioType, ISahreContentStatus, IPushType, IMode, IReqList, TCommand } from '../type';
7
+ import { IClientConfig, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, ISdkUserInfo, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, ISahreContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference } from '../type';
8
8
  import Emmitter from '../tools/emmitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -13,7 +13,7 @@ import DeviceManager from './deviceManager';
13
13
  import LayoutManager from './layoutManager';
14
14
  export default class Client extends Emmitter {
15
15
  logger: Logger;
16
- socketTask: Socket;
16
+ socketTask: Socket | undefined;
17
17
  invite: IInvite;
18
18
  rosters: IRoster[];
19
19
  layoutRosters: {
@@ -23,15 +23,19 @@ export default class Client extends Emmitter {
23
23
  };
24
24
  disconnected: boolean;
25
25
  speakerInfo: ISpeakerInfo;
26
- layoutManager: LayoutManager;
26
+ layoutManager: LayoutManager | null;
27
27
  pushType: IPushType;
28
28
  isAutoBandwidth: boolean;
29
29
  debug: boolean;
30
30
  shareContentStatus: ISahreContentStatus;
31
- deviceManager: DeviceManager;
31
+ deviceManager: DeviceManager | null;
32
32
  localHide: boolean;
33
33
  hideId: string;
34
34
  config: IClientConfig;
35
+ isPermissionDenied: {
36
+ microphone: boolean;
37
+ camera: boolean;
38
+ };
35
39
  private autoMode;
36
40
  private token;
37
41
  private peer;
@@ -58,21 +62,26 @@ export default class Client extends Emmitter {
58
62
  private errorcode;
59
63
  private clientErrorState;
60
64
  private limitResolution;
65
+ private reportDataTimer;
66
+ private reportDataFrequency;
67
+ private meetingQualityData;
68
+ private conferenceInfo;
69
+ private customLayoutCacheList;
61
70
  private onDocumentChange;
62
71
  constructor(config: IClientConfig, servers: IServers, logger: Logger);
63
72
  static instance: Client;
64
- static getClientInstance(config: any, proxyConfig: any, logger: any): Client;
65
- static getCustomLayoutItem(item: any, resolution: any, quality: any): {
66
- pid: any;
67
- resolution: any;
68
- quality: any;
73
+ static getClientInstance(config: IClientConfig, proxyConfig: IServers, logger: Logger): Client;
74
+ static getCustomLayoutItem(item: ILayout, resolution: number, quality: number): {
75
+ pid: number;
76
+ resolution: number;
77
+ quality: number;
69
78
  mediagroupid: number;
70
79
  };
71
80
  static getMeetingStatus(success: boolean, code?: number, msg?: string): {
72
81
  success: boolean;
73
82
  data: {
74
83
  code: number;
75
- msg: string;
84
+ msg: string | undefined;
76
85
  };
77
86
  } | {
78
87
  success: boolean;
@@ -82,9 +91,9 @@ export default class Client extends Emmitter {
82
91
  };
83
92
  };
84
93
  getClientConfig(): IClientConfig;
85
- getVideoManagers(): import("../type").IVideoRenders;
94
+ getVideoManagers(): import("../type").IVideoRenders | undefined;
86
95
  getPreviewStreams(): import("../type").IGetMediaStreams | {
87
- previewStreams: any[];
96
+ previewStreams: never[];
88
97
  };
89
98
  getVideoTrackList(): ICustomStreamTrack[];
90
99
  getLayoutRosters(): {
@@ -100,70 +109,143 @@ export default class Client extends Emmitter {
100
109
  getRotationInfo(): import("../type").IRotationInfoTotalItem[];
101
110
  getPeerConnectionStatus(): boolean;
102
111
  getOnHold(): boolean;
103
- getLayoutList(): Map<string, import("../type").ICustomLayoutObj>;
104
- getChairmanUri(): string;
112
+ getLayoutList(): Map<string, ILayout> | undefined;
113
+ getSelfRoster(): IRoster | undefined;
105
114
  /**
106
115
  * 切换显示/隐藏 Local 画面
116
+ *
117
+ * @public
118
+ * @returns { Promise<{ status: boolean }> } 是否隐藏本地画面成功
107
119
  */
108
120
  toggleLocal(): Promise<{
109
121
  status: boolean;
110
122
  }>;
111
123
  /**
112
- * 隐身入会互动
124
+ * 隐身入会, 可调用此方法进行互动
125
+ *
126
+ * @public
127
+ * @returns { Promise<boolean> } 是否隐身
113
128
  */
114
129
  toggleHideId(): Promise<boolean>;
115
130
  /**
116
131
  * 绑定streamId和video ele元素,内部维护状态
117
132
  *
118
- * @param key endpoinId + mediagroupId 唯一的用户id值
119
- * @param wrapEle 包裹video组件的元素id,此元素一定要提供宽高信息,内部会基于此宽高信息计算video的旋转信息
133
+ * @public
134
+ * @param { string } key endpoinId + mediagroupId 唯一的用户id值
135
+ * @param { string } wrapEle 包裹video组件的元素id,此元素一定要提供宽高信息,内部会基于此宽高信息计算video的旋转信息
136
+ */
137
+ setVideoRenderer(key: string, wrapEleId: string): void;
138
+ /**
139
+ * 重新播放视频
140
+ *
141
+ * @public
142
+ * @param { string[] ? } keys 指定重新播放的video
120
143
  */
121
- setVideoRenderer(key: any, wrapEleId: any): void;
144
+ playVideo(keys?: string[]): Promise<boolean>;
145
+ /**
146
+ * 重新播放音频
147
+ */
148
+ playAudio(): Promise<boolean>;
122
149
  /**
123
150
  * 绑定streamId和audio ele元素,内部维护状态
124
151
  *
125
- * @param key streamId 流id
126
- * @param ele audio元素
152
+ * @public
153
+ * @param { string } key streamId流id
154
+ * @param { HTMLAudioElement } ele audio元素
127
155
  */
128
- setAudioRenderer(key: any, ele: any): Promise<void>;
156
+ setAudioRenderer(key: string, ele: HTMLAudioElement): Promise<void>;
129
157
  /**
130
158
  * 是否执行自动切换设备操作
131
159
  *
132
- * @param status boolean true:代表自动切换设备
160
+ * @public
161
+ * @param { boolean } status 是否自动切换设备
133
162
  */
134
163
  switchAutoDevice(status?: boolean): Promise<boolean>;
135
- switchLayout(templateMode: IMode): Promise<IMode>;
164
+ /**
165
+ * 切换布局
166
+ *
167
+ * @param { IMode? } templateMode 指定要切换的布局模式
168
+ * @returns { Promise<IMode> } 切换后的布局模式
169
+ */
170
+ switchLayout(templateMode?: IMode): Promise<IMode>;
171
+ /**
172
+ * AUTO布局 分页
173
+ *
174
+ * @public
175
+ * @param { number } currentPage 请求某一页数据
176
+ */
177
+ setPageInfo(currentPage?: number): Promise<never> | undefined;
178
+ /**
179
+ * 会议室信息,如号码、名称、类型、配置信息(是否有水印等)
180
+ *
181
+ * @private
182
+ */
183
+ private handleConferenceInfo;
184
+ /**
185
+ * 处理wss返回的数据
186
+ *
187
+ * @public
188
+ * @param { any } data
189
+ * @param { any } resolve
190
+ */
136
191
  handleSocketMessage(data: any, resolve: any): void;
192
+ /**
193
+ * 处理调度状态消息,解析错误码并返回
194
+ *
195
+ * @private
196
+ * @param { IMonitorReportMessage } data 媒体调度消息
197
+ */
198
+ private dealMonitorReportMessage;
137
199
  /**
138
200
  * 发起会议呼叫,如果返回 true ,代表是否可以继续呼叫;
139
201
  *
140
- * @param params ICall
202
+ * @public
203
+ * @param { IMackCall } params 呼叫参数
141
204
  */
142
- makeCall(params: ICall): Promise<any>;
205
+ makeCall(params: IMackCall): Promise<any>;
143
206
  /**
144
- * 开始会议
207
+ * 开始会议,发送start call消息,通知后台服务
145
208
  *
146
- * 发送start call消息,通知后台服务
209
+ * @public
147
210
  */
148
211
  startCall(): void;
149
212
  /**
150
- * 结束会议
213
+ * 结束会议,发送stop call消息,通知后台服务
151
214
  *
152
- * 发送stop call消息,通知后台服务
215
+ * @public
153
216
  */
154
217
  stopCall(reason: 'OK' | 'SERVER_INNER_ERROR' | 'PEER_NET_DISCONNECT' | 'LOCAL_NET_DISCONNECT' | string): void;
155
218
  /**
156
219
  * 建会准备工作完成,通过publish开始多人会议
157
- * @param stream 本地Stream
220
+ *
221
+ * @public
222
+ * @param { Stream } stream 本地Stream
223
+ * @param { IPublishParams } params 推送的stream类型
224
+ * @param { boolean } params.isShareContent 是否推送共享屏幕流,默认是false,不推送,当需要屏幕共享时,请配置为true;
225
+ * @param { boolean } params.isSharePeople 是否推送本地数据流,默认是false,初始入会需要设置为true
226
+ * @param { boolean } params.isShareFile 是否推送文件,默认是false,此功能暂时未实现
227
+ * @param { boolean } params.isShareWhiteBoard 是否推送白板,默认是false, 此功能暂时未实现
158
228
  */
159
229
  publish(stream: Stream, params?: IPublishParams): void;
160
230
  /**
161
- * Calculate then ablity value of then content stream and notify Media.
231
+ * 通知媒体content能力
162
232
  *
163
- * @param stream Stream 流集合
233
+ * @public
234
+ * @param { Stream } stream 本地contentStream
164
235
  */
165
236
  sendContentCapablityMessage(stream?: Stream): void;
237
+ /**
238
+ * 分享content
239
+ *
240
+ * @public
241
+ */
166
242
  applyShareContent(): Promise<void>;
243
+ /**
244
+ * 停止分享content
245
+ *
246
+ * @public
247
+ * @returns { Promise<Boolean> } 停止分享content是否成功
248
+ */
167
249
  stopShareContent(): Promise<Boolean>;
168
250
  initTrackEvent(): void;
169
251
  mergeTrackList(e: RTCTrackEvent): void;
@@ -173,10 +255,12 @@ export default class Client extends Emmitter {
173
255
  destroy(): Promise<boolean>;
174
256
  close(reason?: string): void;
175
257
  /**
176
- * 用户初始登录,获取token方法
258
+ * 小鱼账号初始登录,获取token方法
177
259
  *
178
- * @param { string } userName
179
- * @param { string } password
260
+ * @public
261
+ * @param { string } userName 小鱼用户账号
262
+ * @param { string } password 小鱼用户账号密码
263
+ * @returns { Promise<Object> } { access_token }
180
264
  */
181
265
  loginXYlinkAccount(userName: string, password: string): Promise<Object>;
182
266
  /**
@@ -188,136 +272,392 @@ export default class Client extends Emmitter {
188
272
  getExternalLoginInfo(sdkUserInfo: ISdkUserInfo, params: ILoginExtAccount): Promise<{
189
273
  code: number;
190
274
  msg: string;
191
- detail: {};
275
+ detail: any;
192
276
  }>;
193
277
  /**
194
278
  * 第三方登录方法
195
279
  *
196
- * @param { string } userName
197
- * @param { string } password
280
+ * @public
281
+ * @param { ILoginExtAccount } params 参数
282
+ * @return { Promise<Object> } 登录结果
198
283
  */
199
284
  loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
200
- getConference(id?: number, sk?: string, token?: string): Promise<any>;
201
- fetchErrorCode(securityKey: string): Promise<void>;
202
- getErrorCodeByJson(link: string): Promise<any>;
285
+ /**
286
+ * 获取随机云会议室 - 目前用于教育
287
+ *
288
+ * @public
289
+ * @param { string } id
290
+ * @param { string } sk
291
+ * @param { string } token
292
+ * @returns { Promise<IConference> } 云会议室信息
293
+ */
294
+ getConference(id?: number, sk?: string, token?: string): Promise<IConference>;
295
+ /**
296
+ * 获取错误码json链接
297
+ *
298
+ * @private
299
+ * @returns
300
+ */
301
+ private fetchErrorCode;
302
+ /**
303
+ * 根据链接获取错误码
304
+ *
305
+ * @private
306
+ * @param { string } link
307
+ * @returns { Promise<IErrorCodeList> } 错误码
308
+ */
309
+ private getErrorCodeByJson;
310
+ /**
311
+ * 音视频开启关闭操作
312
+ *
313
+ * @public
314
+ * @param { 'muteAudio' | 'muteVideo' | 'unmuteAudio' | 'unmuteVideo' } type 操作类型
315
+ * @returns Promise<IVideoAudioType> 类型
316
+ */
203
317
  videoAudioOperate(type: IVideoAudioType): Promise<IVideoAudioType>;
318
+ /**
319
+ * 静音 操作
320
+ *
321
+ * @public
322
+ * @returns { Promise<IVideoAudioType> } 操作类型
323
+ */
204
324
  muteAudio(): Promise<IVideoAudioType>;
325
+ /**
326
+ * 关闭摄像头 操作
327
+ *
328
+ * @public
329
+ * @returns { Promise<IVideoAudioType> } 操作类型
330
+ */
205
331
  muteVideo(): Promise<IVideoAudioType>;
332
+ /**
333
+ * 开启摄像头 操作
334
+ *
335
+ * @public
336
+ * @returns { Promise<IVideoAudioType> } 操作类型
337
+ */
206
338
  unmuteAudio(): Promise<IVideoAudioType>;
339
+ /**
340
+ * 取消静音 操作
341
+ *
342
+ * @public
343
+ * @returns { Promise<IVideoAudioType> } 操作类型
344
+ */
207
345
  unmuteVideo(): Promise<IVideoAudioType>;
346
+ /**
347
+ * 举手发言 操作
348
+ *
349
+ * @public
350
+ * @returns { Promise<boolean> } 是否举手
351
+ */
208
352
  onHandUp(): Promise<boolean>;
353
+ /**
354
+ * 取消举手 操作
355
+ *
356
+ * @public
357
+ * @returns { Promise<boolean> } 是否举手
358
+ */
209
359
  onHandDown(): Promise<boolean>;
360
+ /**
361
+ * 结束发言 操作
362
+ *
363
+ * @public
364
+ * @returns { Promise<boolean> } 是否举手
365
+ */
210
366
  onMute(): Promise<boolean>;
211
- onHand(type: 'handup' | 'handdown' | 'mute', handStatus: boolean): Promise<boolean>;
367
+ private onHand;
368
+ /**
369
+ * 获取可支持的编解码
370
+ *
371
+ * @public
372
+ * @returns { Promise<Object> }
373
+ */
212
374
  getSendSupportedCodec(): Promise<Object>;
375
+ /**
376
+ * peerConnection 创建成功后,从缓存中读取会控消息开始处理
377
+ *
378
+ * @public
379
+ * @param { boolean } status peer连接状态
380
+ */
213
381
  setPeerConnectionStatus(status: boolean): void;
214
- onSetAudioStream: (audioMute: string) => void;
215
- onMeetingControlMessage(data: IMeetingControl): void;
216
- onSubTitle(data: ISubTitle): void;
382
+ /**
383
+ * 根据 autoMute 或 muteOperation 的值发送音频流
384
+ *
385
+ * @private
386
+ * @param { string } audioMute 是否静音
387
+ */
388
+ private onSetAudioStream;
389
+ /**
390
+ * 处理会控消息,如音频、主会场、content等
391
+ *
392
+ * @private
393
+ * @param { IMeetingControl } data 会控消息
394
+ */
395
+ private onMeetingControlMessage;
396
+ /**
397
+ * 处理字幕、点名消息
398
+ *
399
+ * @private
400
+ * @param { ISubTitle } data 字幕、点名消息
401
+ */
402
+ private onSubTitle;
403
+ /**
404
+ * 处理媒体消息
405
+ *
406
+ * @private
407
+ * @param { any } data 媒体消息
408
+ */
217
409
  private onPassThroughMessage;
410
+ /**
411
+ * 是否开启自动调整带宽
412
+ *
413
+ * @public
414
+ * @returns { boolean } 是否开启带宽调整
415
+ */
218
416
  switchAutoBandwidth(): boolean;
417
+ /**
418
+ * 当websocket error,挂断会议
419
+ *
420
+ * @private
421
+ * @param { number } code 错误码
422
+ */
219
423
  private disconnectInWssError;
220
- getSelfRoster: () => import("../type").ISelfRoster;
424
+ /**
425
+ * 切换debug模式,控制推送发送&接收路所有流的状态数据(包括帧率,码率,带宽,抖动,分辨率等会议详细信息),开启后,通过监听 meeting-stats 事件获取数据
426
+ *
427
+ * @public
428
+ * @param status 是否开启debug模式
429
+ * @returns { Promise<boolean> } 是否开启了debug模式
430
+ */
221
431
  switchDebug(status: boolean): Promise<boolean>;
222
432
  /**
223
- *  0: 90, 1: 180, 2: 360, 3: 720, 4: 1080
224
- *  0: low, 1: normal, 2: high
225
-
226
- *  * 视频质量级别
227
- *  people 720p 时:Low 表示15 fps,Normal和High 表示 30 fps
228
- *  people 1080p时:Low 表示15 fps,Normal和High 表示 60 fps,(如果解码能力不够60,会被压低为30的)
433
+ * 请求自定义参会者成员的分辨率、质量视频数据 (2.0.2以前的版本方法)
434
+ * 视频质量级别
435
+ * people 720p 时:Low 表示15 fps,Normal和High 表示 30 fps
436
+ * people 1080p时:Low 表示15 fps,Normal和High 表示 60 fps,(如果解码能力不够60,会被压低为30的)
229
437
  *
230
- *  content 720p 时:Low 表示5 fps, Normal和High 表示 30 fps
231
- *  content 1080p时:Low 表示15 fps,Normal和High 表示 30 fps
438
+ * content 720p 时:Low 表示5 fps, Normal和High 表示 30 fps
439
+ * content 1080p时:Low 表示15 fps,Normal和High 表示 30 fps
440
+ *
441
+ * @public
442
+ * @param { IReqInfo[] } reqList 需要请求的参会者的信息
443
+ * @returns { string } 是否成功
444
+ */
445
+ requestLayout(reqList: IReqInfo[]): Promise<string>;
446
+ /**
447
+ * 【newLayout】请求参会者成员的信息、视频数据等
232
448
  *
233
- * @param reqList
449
+ * @public
450
+ * @param { ICustomLayout[] } reqList 计算得到的custom layout list数据
451
+ * @param { number } maxViewCountPerPage 每页最多请求画面数量,最大为9
452
+ * @param { number } pageIndex 请求第几页数据
453
+ * @param { IReqInfo[] } extReqList 需要固定的画面数据列表
454
+ * @param { object? } extParams 其他参数
455
+ * @returns { Promise<boolean> } 是否请求成功
234
456
  */
235
- requestLayout(reqList: IReqList[]): Promise<string>;
457
+ requestNewLayout(reqList: IReqInfo[], maxViewCountPerPage: number, pageIndex: number, extReqList?: IReqInfo[], extParams?: {}): Promise<boolean>;
236
458
  /**
237
459
  * 开始轮询请求 Layout 画面数据
238
460
  *
239
- * @param command 轮询状态,0-开始 1-停止 2-暂停 3-恢复
240
- * @param interval 轮询间隔时长,单位秒
241
- * @param reqList 请求 Layout 画面流内容
242
- * @returns
461
+ * @public
462
+ * @param { TCommand } command 轮询状态,0-开始 1-停止 2-暂停 3-恢复
463
+ * @param { number } interval 轮询间隔时长,单位秒
464
+ * @param { IReqInfo[] } reqList 请求 Layout 画面流内容
465
+ * @returns { Promise<boolean> } 是否请求成功
243
466
  */
244
- requestAutoPlllingLayout(command: TCommand, interval: number, reqList: IReqList[]): Promise<boolean>;
467
+ requestAutoPollingLayout(command: TCommand, interval: number | undefined, reqList: IReqInfo[]): Promise<boolean>;
245
468
  /**
246
- * 应用替换已经更新的的people video track轨道流
469
+ * 应用替换已经更新的的people video track轨道流,如果之前无流,则需重新setStream, replaceTrack
470
+ *
471
+ * @public
472
+ * @param { 'video' | 'audio' } kind 设备类型
473
+ * @param { boolean } isFirst 是否之前无流
474
+ */
475
+ applyVideoOrAudio(kind: 'video' | 'audio', isFirst?: boolean): void;
476
+ /**
477
+ * 发布layout数据
478
+ *
479
+ * @public
247
480
  */
248
- applyVideoOrAudio(kind: 'video' | 'audio'): void;
249
481
  sendLayoutMessage(): void;
250
- private sendOrderedRosterListMessage;
251
- private sendOrderRosterListMessage;
482
+ /**
483
+ * 发布最新的已经排序过的的roster信息
484
+ *
485
+ * @private
486
+ */
487
+ private sendOriginOrderedRosterMessage;
488
+ /**
489
+ * 对媒体下发的roster信息进行排序,发布
490
+ *
491
+ * @private
492
+ */
493
+ private sendsOriginOrderRosterMessage;
494
+ /**
495
+ * 【仅支持2.0.2以前的版本】发布 自定义布局 layout布局信息(参会人最新的布局列表数据)
496
+ *
497
+ * @public
498
+ */
252
499
  sendCustomLayoutMessage(): void;
500
+ /**
501
+ * 发布Layout Cotnaienr的容器信息
502
+ *
503
+ * @public
504
+ * @param { IScreenInfo } screenInfo Layout Cotnaienr的容器信息
505
+ */
253
506
  sendScreenInfoMessage(screenInfo: IScreenInfo): void;
254
- sendContentRosterMessage(next: IRoster): void;
507
+ /**
508
+ * 发布当前正在分享 content 的用户详细信息
509
+ *
510
+ * @public
511
+ * @param { IRoster | null } next content想起信息
512
+ */
513
+ sendContentRosterMessage(next: IRoster | null): void;
514
+ /**
515
+ * 发布AUTO布局当前布局模式
516
+ *
517
+ * @public
518
+ * @param { IMode } templateMode 布局模式
519
+ */
255
520
  sendTemplateMode(templateMode: IMode): void;
521
+ /**
522
+ * ws 发送摄像头、麦克风开启关闭操作
523
+ *
524
+ * @private
525
+ * @param { IVideoAudioMessageType } type 操作类型
526
+ */
256
527
  private sendOperationMessage;
257
- private sendMeetingStatus;
528
+ /**
529
+ * 处理旋转信息
530
+ *
531
+ * @private
532
+ */
258
533
  private updateRotationInfo;
259
534
  /**
260
- * 发送customLayout请求流的消息
535
+ * 【仅支持2.0.2以前的版本】发送customLayout请求流的消息
261
536
  *
262
- * @param customLayout ICustomLayout[] 计算得到的customLayout List数据
537
+ * @public
538
+ * @param { ICustomLayout[] } customLayout 计算得到的customLayout List数据
263
539
  */
264
540
  sendCustomLayout(customLayout?: ICustomLayout[]): void;
265
541
  /**
266
- * 发送customNewLayout请求流的消息
542
+ * 发布Internels统计数据
267
543
  *
268
- * @param customLayout ICustomLayout[] 计算得到的customLayout List数据
544
+ * @public
545
+ * @param { IInternels } internels Internels统计数据
269
546
  */
270
- sendCustomNewLayoutReqlist(customLayout?: any[]): void;
271
547
  sendInternels(internels: IInternels): void;
272
548
  /**
273
549
  * 取消监听事件
274
550
  *
275
- * @param key string 监听器key值
551
+ * @public
552
+ * @param { string } key 监听器key值
553
+ */
554
+ off(key: string): void;
555
+ /**
556
+ * 屏幕 Resize
557
+ *
558
+ * @private
276
559
  */
277
- off(key: any): void;
278
560
  private onScreenChangeEvent;
561
+ /**
562
+ * 注册resize事件
563
+ *
564
+ * @private
565
+ */
279
566
  private initEvent;
567
+ /**
568
+ * 移除resize事件
569
+ *
570
+ * @private
571
+ */
280
572
  private removeEvent;
281
573
  /**
282
574
  * 发送wss peopleCapability,通知本地采集能力,用于vom进行分配
283
- * @param isSetBandwidth
575
+ *
576
+ * @public
284
577
  */
285
578
  sendPeopleCapability(): void;
286
- forceFullScreen(id: string): Promise<unknown>;
579
+ /**
580
+ * 全屏请流
581
+ *
582
+ * @param { string } id rosterId
583
+ * @returns Promise<string> rosterId
584
+ */
585
+ forceFullScreen(id: string): Promise<string>;
287
586
  /**
288
587
  * 发送websocket消息方法
289
588
  *
290
- * @param {Object} data
291
- * @param {Boolean} isAutoAdd
589
+ * @public
590
+ * @param { any } data 消息
591
+ * @param { boolean } isAutoAdd 序列号是否自动增加
592
+ * @param { boolean } isLog 是否写入日志
292
593
  */
293
- sendSocketMessage(data: any, isAutoAdd?: boolean): void;
294
- verifyMeeting(params: ICall): Promise<{
295
- success: boolean;
296
- data: {};
297
- }>;
594
+ sendSocketMessage(data: any, isAutoAdd?: boolean, isLog?: boolean): void;
595
+ /**
596
+ * 校验会议室号
597
+ *
598
+ * @private
599
+ * @param { ICall } params
600
+ * @returns { Promise<{success: boolean; data: any;}> } 是否通过校验
601
+ */
602
+ private verifyMeeting;
298
603
  /**
299
604
  * 设置扬声器
300
- * @param deviceId
605
+ *
606
+ * @public
607
+ * @param { string } deviceId 设备ID
301
608
  */
302
609
  setAudioOutputDevice(deviceId: string): void;
303
610
  /**
304
611
  * 开始巡课
305
- * @param uriList
612
+ *
613
+ * @public
614
+ * @param { string[] } uriList 需要巡课的终端ID(callUri)
306
615
  */
307
616
  startMonitor(uriList?: string[]): void;
308
617
  /**
309
- * 取消巡课
310
- * @param uriList
618
+ * 停止巡课
619
+ *
620
+ * @public
621
+ * @param { string[] } uriList 需要停止巡课的终端ID(callUri)
311
622
  */
312
623
  stopMonitor(uriList?: string[]): void;
624
+ /**
625
+ * 订阅参会者信息
626
+ *
627
+ * @public
628
+ */
629
+ subscribeBulkRoster(): Promise<unknown>;
630
+ /**
631
+ * 定时上报会议质量、网络数据
632
+ *
633
+ * @private
634
+ */
635
+ private reportQualityData;
636
+ /**
637
+ * 发送会议质量数据
638
+ *
639
+ * @param { boolean ? } isLast 挂断状态
640
+ * @private
641
+ */
642
+ private calcQualityData;
643
+ /**
644
+ * 停止上报网络数据
645
+ *
646
+ * @private
647
+ */
648
+ private stopReportData;
313
649
  /**
314
650
  * 初始化DeviceManager事件
651
+ *
652
+ * @private
315
653
  */
316
654
  private initDeviceManagerEvent;
317
655
  /**
318
656
  * init websocket connection
319
- * @param resolve
320
- * @param reject
657
+ *
658
+ * @private
659
+ * @param { any } resolve
660
+ * @param { any } reject
321
661
  */
322
662
  private initWss;
323
663
  }