@xylink/xy-rtc-sdk 2.0.5 → 2.1.1

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,203 +4,24 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-30 14:12:52
6
6
  */
7
- import { ICONTENT_CONTRAINTS, IBASE_CONTRAINTS, IDefault, IMUTE_MAP, ITemplateMode, IContentTemplateMode, IRoster } from '../type';
7
+ import { IDefault, IMUTE_MAP, ITemplateMode, IContentTemplateMode, IRoster } from '../type';
8
+ export * from './contraints';
8
9
  export declare const DETECT_LOCATOR_SERVER_NAME = "WebrtcSigGW";
10
+ export declare const MIME_TYPE = "video/H264";
9
11
  export declare const DEVICE_TYPE = 17;
10
12
  export declare const SELF_MOCK_PID = 9999999999;
11
13
  export declare const STREAM_CHANNEL_COUNT = 11;
12
14
  export declare const MAX_PARTICIPANT_COUNT = 112;
13
15
  export declare const STREAM_ERROR_CODE_MAP: string[];
14
16
  export declare const SUPPORT_DEVICE_TYPE: string[];
17
+ export declare const MEDIAGROUPID: number[];
18
+ export declare const QUALITY_TYPE: number[];
19
+ export declare const RESOLUTION_TYPE: number[];
15
20
  export declare const MAX_PAGE_SIZE = 9;
16
21
  export declare const NETWORK_TYPE_MAP: {
17
22
  [key: string]: number;
18
23
  };
19
24
  export declare const MUTE_MAP: IMUTE_MAP;
20
- export declare const CONTRAINTS_MAP: {
21
- 0: number[];
22
- 1: number[];
23
- 2: number[];
24
- 3: number[];
25
- 4: number[];
26
- 5: number[];
27
- 11: number[];
28
- 12: number[];
29
- };
30
- export declare const BASE_RESOLUTION_CONTRAINTS: {
31
- width: {
32
- min: number;
33
- ideal: number;
34
- };
35
- height: {
36
- min: number;
37
- ideal: number;
38
- };
39
- };
40
- export declare const RESOLUTION_360_CONTRAINTS: {
41
- width: number;
42
- height: number;
43
- };
44
- export declare const BASE_CONTRAINTS: IBASE_CONTRAINTS;
45
- export declare const CONTENT_BASE_CONTRAINTS: ICONTENT_CONTRAINTS;
46
- export declare const FIREFOX_CONTENT_CONTRAINTS: {
47
- '720': {
48
- min: {
49
- frameRate: number;
50
- width: number;
51
- height: number;
52
- cursor: string;
53
- aspectRatio: number;
54
- resizeMode: "crop-and-scale";
55
- logicalSurface: true;
56
- };
57
- max: {
58
- width: number;
59
- height: number;
60
- cursor: string;
61
- aspectRatio: number;
62
- resizeMode: "crop-and-scale";
63
- frameRate: ConstrainDouble;
64
- logicalSurface: true;
65
- };
66
- };
67
- '1080': {
68
- min: {
69
- frameRate: number;
70
- width: number;
71
- height: number;
72
- cursor: string;
73
- aspectRatio: number;
74
- resizeMode: "crop-and-scale";
75
- logicalSurface: true;
76
- };
77
- max: {
78
- width: number;
79
- height: number;
80
- cursor: string;
81
- aspectRatio: number;
82
- resizeMode: "crop-and-scale";
83
- frameRate: ConstrainDouble;
84
- logicalSurface: true;
85
- };
86
- };
87
- };
88
- export declare const CONTENT_CONTRAINTS: {
89
- '720': {
90
- min: {
91
- frameRate: number;
92
- width: number;
93
- height: number;
94
- cursor: string;
95
- aspectRatio: number;
96
- resizeMode: "crop-and-scale";
97
- logicalSurface: true;
98
- };
99
- max: {
100
- width: number;
101
- height: number;
102
- cursor: string;
103
- aspectRatio: number;
104
- resizeMode: "crop-and-scale";
105
- frameRate: ConstrainDouble;
106
- logicalSurface: true;
107
- };
108
- };
109
- '1080': {
110
- min: {
111
- frameRate: number;
112
- width: number;
113
- height: number;
114
- cursor: string;
115
- aspectRatio: number;
116
- resizeMode: "crop-and-scale";
117
- logicalSurface: true;
118
- };
119
- max: {
120
- width: number;
121
- height: number;
122
- cursor: string;
123
- aspectRatio: number;
124
- resizeMode: "crop-and-scale";
125
- frameRate: ConstrainDouble;
126
- logicalSurface: true;
127
- };
128
- };
129
- } | {
130
- '720': {
131
- min: {
132
- frameRate: number;
133
- width: {
134
- ideal: number;
135
- max: number;
136
- };
137
- height: {
138
- ideal: number;
139
- max: number;
140
- };
141
- cursor: string;
142
- aspectRatio: number;
143
- resizeMode: "crop-and-scale";
144
- logicalSurface: true;
145
- };
146
- max: {
147
- frameRate: {
148
- ideal: number;
149
- max: number;
150
- };
151
- width: {
152
- ideal: number;
153
- max: number;
154
- };
155
- height: {
156
- ideal: number;
157
- max: number;
158
- };
159
- cursor: string;
160
- aspectRatio: number;
161
- resizeMode: "crop-and-scale";
162
- logicalSurface: true;
163
- };
164
- };
165
- '1080': {
166
- min: {
167
- frameRate: number;
168
- width: {
169
- ideal: number;
170
- max: number;
171
- };
172
- height: {
173
- ideal: number;
174
- max: number;
175
- };
176
- cursor: string;
177
- aspectRatio: number;
178
- resizeMode: "crop-and-scale";
179
- logicalSurface: true;
180
- };
181
- max: {
182
- frameRate: {
183
- ideal: number;
184
- max: number;
185
- };
186
- width: {
187
- ideal: number;
188
- max: number;
189
- };
190
- height: {
191
- ideal: number;
192
- max: number;
193
- };
194
- cursor: string;
195
- aspectRatio: number;
196
- resizeMode: "crop-and-scale";
197
- logicalSurface: true;
198
- };
199
- };
200
- };
201
- export declare const PEOPLE_CONTRAINTS: {
202
- [key: string]: any;
203
- };
204
25
  export declare const CONFIGURATION: RTCConfiguration;
205
26
  export declare const NEW_CODE_MAP: {
206
27
  [key: string]: string;
@@ -4,15 +4,17 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-23 12:04:44
6
6
  */
7
- import { IClientConfig, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, ISdkUserInfo, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, ISahreContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IContentMode } from '../type';
7
+ import { IClientConfig, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IContentMode, IToken, AutoMute } from '../type';
8
8
  import Emmitter from '../tools/emmitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
11
11
  import Logger from '../tools/logger';
12
+ import IAuth from './iauth';
12
13
  import DeviceManager from './deviceManager';
13
14
  import LayoutManager from './layoutManager';
14
15
  export default class Client extends Emmitter {
15
16
  logger: Logger;
17
+ iauth: IAuth;
16
18
  socketTask: Socket | undefined;
17
19
  invite: IInvite;
18
20
  rosters: IRoster[];
@@ -27,7 +29,7 @@ export default class Client extends Emmitter {
27
29
  pushType: IPushType;
28
30
  isAutoBandwidth: boolean;
29
31
  debug: boolean;
30
- shareContentStatus: ISahreContentStatus;
32
+ shareContentStatus: IShareContentStatus;
31
33
  deviceManager: DeviceManager | null;
32
34
  localHide: boolean;
33
35
  hideId: string;
@@ -41,7 +43,6 @@ export default class Client extends Emmitter {
41
43
  private peer;
42
44
  private servers;
43
45
  private callInfo;
44
- private loginInfo;
45
46
  private stream;
46
47
  private meetingControl;
47
48
  private videoTrackList;
@@ -68,6 +69,8 @@ export default class Client extends Emmitter {
68
69
  private conferenceInfo;
69
70
  private customLayoutCacheList;
70
71
  private contentMode;
72
+ private contentOnholdInfo;
73
+ private isSubscribeBulkRoster;
71
74
  private onDocumentChange;
72
75
  constructor(config: IClientConfig, servers: IServers, logger: Logger);
73
76
  static instance: Client;
@@ -78,19 +81,6 @@ export default class Client extends Emmitter {
78
81
  quality: number;
79
82
  mediagroupid: number;
80
83
  };
81
- static getMeetingStatus(success: boolean, code?: string, msg?: string): {
82
- success: boolean;
83
- data: {
84
- code: string;
85
- msg: string | undefined;
86
- };
87
- } | {
88
- success: boolean;
89
- data: {
90
- code?: undefined;
91
- msg?: undefined;
92
- };
93
- };
94
84
  getClientConfig(): IClientConfig;
95
85
  getVideoManagers(): import("../type").IVideoRenders | undefined;
96
86
  getPreviewStreams(): import("../type").IGetMediaStreams | {
@@ -110,8 +100,31 @@ export default class Client extends Emmitter {
110
100
  getRotationInfo(): import("../type").IRotationInfoTotalItem[];
111
101
  getPeerConnectionStatus(): boolean;
112
102
  getOnHold(): boolean;
103
+ getAudioTrackList(): ICustomStreamTrack[];
113
104
  getLayoutList(): Map<string, ILayout> | undefined;
114
105
  getSelfRoster(): IRoster | undefined;
106
+ /**
107
+ * 小鱼账号初始登录,获取token方法
108
+ *
109
+ * @public
110
+ * @param { string } userName 小鱼用户账号
111
+ * @param { string } password 小鱼用户账号密码
112
+ * @returns { Promise<Object> } { access_token }
113
+ */
114
+ loginXYlinkAccount(userName: string, password: string): Promise<Object>;
115
+ /**
116
+ * 第三方登录方法
117
+ *
118
+ * @public
119
+ * @param { ILoginExtAccount } params 参数
120
+ * @return { Promise<Object> } 登录结果
121
+ */
122
+ loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
123
+ /**
124
+ * 退会时 重置初始化参数
125
+ *
126
+ */
127
+ resetInitParameter(): void;
115
128
  setContentMode(mode: IContentMode): void;
116
129
  /**
117
130
  * 切换显示/隐藏 Local 画面
@@ -215,15 +228,15 @@ export default class Client extends Emmitter {
215
228
  /**
216
229
  * 开始会议,发送start call消息,通知后台服务
217
230
  *
218
- * @public
231
+ * @private
219
232
  */
220
- startCall(): void;
233
+ private startCall;
221
234
  /**
222
235
  * 结束会议,发送stop call消息,通知后台服务
223
236
  *
224
- * @public
237
+ * @private
225
238
  */
226
- stopCall(reason: 'OK' | 'SERVER_INNER_ERROR' | 'PEER_NET_DISCONNECT' | 'LOCAL_NET_DISCONNECT' | string): void;
239
+ private stopCall;
227
240
  /**
228
241
  * 建会准备工作完成,通过publish开始多人会议
229
242
  *
@@ -256,51 +269,41 @@ export default class Client extends Emmitter {
256
269
  * @returns { Promise<Boolean> } 停止分享content是否成功
257
270
  */
258
271
  stopShareContent(): Promise<Boolean>;
259
- initTrackEvent(): void;
260
- mergeTrackList(e: RTCTrackEvent): void;
261
272
  /**
262
- * 挂断会议,销毁资源
273
+ * 监听 video/audio track
263
274
  */
264
- destroy(): Promise<boolean>;
265
- close(reason?: string): void;
275
+ private initTrackEvent;
266
276
  /**
267
- * 小鱼账号初始登录,获取token方法
277
+ * content onhold时,处理content audio
268
278
  *
269
- * @public
270
- * @param { string } userName 小鱼用户账号
271
- * @param { string } password 小鱼用户账号密码
272
- * @returns { Promise<Object> } { access_token }
279
+ * @private
280
+ * @param { ITrackInfo } rest
273
281
  */
274
- loginXYlinkAccount(userName: string, password: string): Promise<Object>;
282
+ private handleContentOnholdAudio;
275
283
  /**
276
- * 获取第三方user info & 获取token方法
284
+ * 合并track
277
285
  *
278
- * @param { string } userName
279
- * @param { string } password
286
+ * @param { RTCTrackEvent } e
280
287
  */
281
- getExternalLoginInfo(sdkUserInfo: ISdkUserInfo, params: ILoginExtAccount): Promise<{
282
- code: string;
283
- msg: string;
284
- detail: any;
285
- }>;
288
+ private mergeTrackList;
286
289
  /**
287
- * 第三方登录方法
288
- *
289
- * @public
290
- * @param { ILoginExtAccount } params 参数
291
- * @return { Promise<Object> } 登录结果
290
+ * 挂断会议,销毁资源
292
291
  */
293
- loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
292
+ destroy(): Promise<boolean>;
293
+ close(reason?: string): void;
294
294
  /**
295
295
  * 获取随机云会议室 - 目前用于教育
296
296
  *
297
297
  * @public
298
- * @param { string } id
298
+ * @param { string } id userProfileId
299
299
  * @param { string } sk
300
- * @param { string } token
300
+ * @param { IToken } token
301
+ * @param { AutoMute } autoMute 是否静音,0:智能静音 1:全部静音 2:不静音 3:强制静音
301
302
  * @returns { Promise<IConference> } 云会议室信息
302
303
  */
303
- getConference(id?: number, sk?: string, token?: string): Promise<IConference>;
304
+ getConference(id: number | undefined, sk: string | undefined, token: IToken, params?: {
305
+ autoMute: AutoMute;
306
+ }): Promise<IConference>;
304
307
  /**
305
308
  * 获取错误码json链接
306
309
  *
@@ -319,11 +322,11 @@ export default class Client extends Emmitter {
319
322
  /**
320
323
  * 音视频开启关闭操作
321
324
  *
322
- * @public
325
+ * @private
323
326
  * @param { 'muteAudio' | 'muteVideo' | 'unmuteAudio' | 'unmuteVideo' } type 操作类型
324
327
  * @returns Promise<IVideoAudioType> 类型
325
328
  */
326
- videoAudioOperate(type: IVideoAudioType): Promise<IVideoAudioType>;
329
+ private videoAudioOperate;
327
330
  /**
328
331
  * 静音 操作
329
332
  *
@@ -352,6 +355,14 @@ export default class Client extends Emmitter {
352
355
  * @returns { Promise<IVideoAudioType> } 操作类型
353
356
  */
354
357
  unmuteVideo(): Promise<IVideoAudioType>;
358
+ /**
359
+ * 更新设备的声音状态
360
+ * @scene 教育平台-巡课
361
+ * @param type mute: 静音;unmute: 取消静音;
362
+ * @param callUriList 操作的设备的 callUri 或者 callUri 列表
363
+ * @returns [hasError, data]
364
+ */
365
+ setPollingAudioStatus(type: 'mute' | 'unmute', callUriList: string | string[]): Promise<any>;
355
366
  /**
356
367
  * 举手发言 操作
357
368
  *
@@ -373,7 +384,21 @@ export default class Client extends Emmitter {
373
384
  * @returns { Promise<boolean> } 是否举手
374
385
  */
375
386
  onMute(): Promise<boolean>;
387
+ /**
388
+ * 本地举手、结束发言等操作
389
+ *
390
+ * @private
391
+ * @param { 'handup' | 'handdown' | 'mute' } type 操作类型
392
+ * @param { boolean } handStatus 是否举手
393
+ * @returns { Promise<boolean> } 举手状态
394
+ */
376
395
  private onHand;
396
+ /**
397
+ * 告知媒体是否开启出入会通知
398
+ *
399
+ * @private
400
+ */
401
+ private sendConfParam;
377
402
  /**
378
403
  * 获取可支持的编解码
379
404
  *
@@ -416,6 +441,13 @@ export default class Client extends Emmitter {
416
441
  * @param { any } data 媒体消息
417
442
  */
418
443
  private onPassThroughMessage;
444
+ /**
445
+ * 处理contentOnhold
446
+ *
447
+ * @private
448
+ * @param { IConfProperty } info
449
+ */
450
+ private handleContentOnhold;
419
451
  /**
420
452
  * 是否开启自动调整带宽
421
453
  *
@@ -427,7 +459,8 @@ export default class Client extends Emmitter {
427
459
  * 当websocket error,挂断会议
428
460
  *
429
461
  * @private
430
- * @param { string } code 错误码
462
+ * @param { string } errorCode 错误码
463
+ * @param { TErrorReason } detail 详情
431
464
  */
432
465
  private disconnectInWssError;
433
466
  /**
@@ -517,7 +550,7 @@ export default class Client extends Emmitter {
517
550
  * 发布当前正在分享 content 的用户详细信息
518
551
  *
519
552
  * @public
520
- * @param { IRoster | null } next content想起信息
553
+ * @param { IRoster | null } next content详细信息
521
554
  */
522
555
  sendContentRosterMessage(next: IRoster | null): void;
523
556
  /**
@@ -591,7 +624,7 @@ export default class Client extends Emmitter {
591
624
  * @param { string } id rosterId
592
625
  * @returns Promise<string> rosterId
593
626
  */
594
- forceFullScreen(id: string): Promise<string>;
627
+ forceFullScreen(id?: string): Promise<string>;
595
628
  /**
596
629
  * 发送websocket消息方法
597
630
  *
@@ -601,6 +634,7 @@ export default class Client extends Emmitter {
601
634
  * @param { boolean } isLog 是否写入日志
602
635
  */
603
636
  sendSocketMessage(data: any, isAutoAdd?: boolean, isLog?: boolean): void;
637
+ private getBasicInfo;
604
638
  /**
605
639
  * 校验会议室号
606
640
  *
@@ -616,6 +650,12 @@ export default class Client extends Emmitter {
616
650
  * @param { string } deviceId 设备ID
617
651
  */
618
652
  setAudioOutputDevice(deviceId: string): void;
653
+ /**
654
+ * 移除对应的AudioRender
655
+ *
656
+ * @param { string } key endpoinId + mediagroupId 唯一的用户id值
657
+ */
658
+ removeAuidoRender(key: string): void;
619
659
  /**
620
660
  * 开始巡课
621
661
  *
@@ -0,0 +1,33 @@
1
+ /**
2
+ * 登录模块
3
+ *
4
+ */
5
+ import { ILoginExtAccount, ISdkUserInfo, ILoginInfo } from '../type';
6
+ import Logger from '../tools/logger';
7
+ declare class IAuth {
8
+ private logger;
9
+ private loginInfo;
10
+ constructor(logger: Logger);
11
+ getLoginInfo(): ILoginInfo;
12
+ setLoginInfo(loginInfo: ILoginInfo): void;
13
+ /**
14
+ * 第三方登录方法
15
+ *
16
+ * @public
17
+ * @param { ILoginExtAccount } params 参数
18
+ * @return { Promise<Object> } 登录结果
19
+ */
20
+ loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
21
+ /**
22
+ * 登录
23
+ *
24
+ * @param { ISdkUserInfo } sdkUserInfo
25
+ * @param { ILoginExtAccount } params
26
+ */
27
+ login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<{
28
+ code: string;
29
+ msg: string;
30
+ detail: any;
31
+ }>;
32
+ }
33
+ export default IAuth;
@@ -6,10 +6,10 @@
6
6
  * @email luojinghui424@gmail.com
7
7
  *
8
8
  * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2022-01-04 23:32:36
9
+ * Last modified : 2022-05-12 20:02:39
10
10
  */
11
11
  import Logger from '../tools/logger';
12
- import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType, ICustomLayout } from '../type/index';
12
+ import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
13
13
  import Client from './client';
14
14
  export default class LayoutManager {
15
15
  logger: Logger;
@@ -25,7 +25,6 @@ export default class LayoutManager {
25
25
  private templateMode;
26
26
  private templateModeTemp;
27
27
  private templateRate;
28
- private specifyTemplateMode;
29
28
  private content;
30
29
  private screenInfo;
31
30
  private internelsLayout;
@@ -59,14 +58,32 @@ export default class LayoutManager {
59
58
  getTemplateMode(): IMode;
60
59
  getConfInfo(): IConfInfo;
61
60
  getInternelsLayout(): IOutputCustomLayout;
61
+ getLocalShareState(): boolean;
62
62
  setOrderRosterList(orderRosterList: IRoster[]): void;
63
63
  setOriginOrderRosters(originOrderRosters: IRoster[]): void;
64
+ /**
65
+ * 设置发布全屏layout id
66
+ *
67
+ * @param { string } id forcelayout roster id
68
+ */
64
69
  setForceFullScreenId(id?: string): void;
65
70
  setTemplateMode(templateMode: IMode): void;
66
- setContentRosterItem(content: IRoster): void;
71
+ setContentRosterItem(content: IRoster | null): void;
67
72
  setConfInfo(confInfo: IConfInfo): void;
73
+ /**
74
+ * 本地分享content, 设置对应布局、页码
75
+ *
76
+ * @public
77
+ * @param { boolean } is 本地是否分享content
78
+ */
68
79
  setLocalShareContent(is: boolean): void;
69
- rosterRecvMode(orderRosterListLen: number): {
80
+ /**
81
+ * 计算显示模板数据
82
+ *
83
+ * @public
84
+ * @returns
85
+ */
86
+ calcTemplate(): {
70
87
  tempLayout: ITemplateObj[];
71
88
  templateRate: number;
72
89
  };
@@ -99,31 +116,43 @@ export default class LayoutManager {
99
116
  */
100
117
  clearInvalidVideoManagers(): void;
101
118
  /**
102
- * 重新计算页码信息
119
+ * [AUTO] 重新计算页码信息、模板类型
120
+ *
121
+ * @public
103
122
  */
104
- calcPageInfo(): void;
123
+ calcPageInfo(confInfo?: IConfInfo): void;
105
124
  /**
106
- * AUTO布局 分页
107
- * @param currentPage 请求某一页数据
125
+ * [AUTO] 分页
126
+ *
127
+ * @public
128
+ * @param { number } currentPage 请求某一页数据
108
129
  */
109
130
  setPageInfo(currentPage?: number): void;
110
131
  /**
111
- * 全屏请流
132
+ * [AUTO] 全屏请流
133
+ *
134
+ * @public
112
135
  */
113
- calcForceFullScreenRequestLayout(): boolean;
136
+ calcForceFullScreenRequestLayout(): void;
114
137
  /**
115
- * AUTO布局 请流
138
+ * [AUTO] 请流
139
+ *
140
+ * @public
141
+ * @param { IPageInfo } pageInfo 页码信息
116
142
  */
117
143
  calcRequestNewLayout(pageInfo?: IPageInfo): void;
118
144
  /**
119
- * AUTO : 基于 new layout result 消息生成 customLayoutList 数据,并diff对比更新数据
120
- * @param totalLayoutResultList
145
+ * [AUTO] : 基于 new layout result 消息生成 customLayoutList 数据,并diff对比更新数据
146
+ *
147
+ * @public
148
+ * @param { ILayoutRoster[] } totalLayoutResultList
121
149
  */
122
150
  createAutoLayout(totalLayoutResultList: ILayoutRoster[]): void;
123
151
  /**
124
152
  * 创建排好序的roster数据
125
153
  *
126
- * @param totalLayoutResultList
154
+ * @private
155
+ * @param { ILayoutRoster[] } totalLayoutResultList
127
156
  */
128
157
  private createOrderRoster;
129
158
  createCustomLayout(totalLayoutResultList: ILayoutRoster[]): void;
@@ -135,7 +164,6 @@ export default class LayoutManager {
135
164
  requestLayout(reqList: IReqInfo[]): void;
136
165
  calculatePosition(): void;
137
166
  calculateRotate(): void;
138
- requestLayoutCalculator(): ICustomLayout[];
139
167
  getVideoStreamByTrackId(videoTrackId: string): {
140
168
  videoStream: MediaStream | null;
141
169
  track: MediaStreamTrack | null;
@@ -152,10 +180,9 @@ export default class LayoutManager {
152
180
  rateHeight: number;
153
181
  rateWidth: number;
154
182
  };
155
- requestCustomLayout(): void;
156
183
  createLayout(): void;
157
184
  calculateOrderRosterList(): IRoster[];
158
- switchLayout(templateMode?: IMode): IMode | undefined;
185
+ switchLayout(templateMode?: IMode): IMode;
159
186
  /**
160
187
  * 【内部方法】停止轮询时,清理无效的 videoManager 数据
161
188
  *