@xylink/xy-rtc-sdk 3.9.7 → 3.9.9
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/lib/action/index.d.ts +19 -6
- package/lib/enum/errorCode.d.ts +3 -0
- package/lib/enum/index.d.ts +4 -0
- package/lib/enum/polling.d.ts +11 -0
- package/lib/main/client.d.ts +30 -6
- package/lib/main/helper.d.ts +1 -1
- package/lib/main/layout/index.d.ts +41 -12
- package/lib/main/layout/polling.d.ts +216 -0
- package/lib/main/layout/template.d.ts +3 -3
- package/lib/main/meeting.d.ts +8 -1
- package/lib/main/videoManager.d.ts +1 -1
- package/lib/tools/quality.d.ts +1 -1
- package/lib/tools/regex.d.ts +4 -0
- package/lib/tools/template/index.d.ts +9 -86
- package/lib/tools/template/polling.d.ts +8 -0
- package/lib/tools/utils.d.ts +7 -0
- package/lib/type/client.d.ts +71 -55
- package/lib/type/index.d.ts +1 -0
- package/lib/type/layout.d.ts +47 -4
- package/lib/type/meeting.d.ts +61 -1
- package/lib/type/polling.d.ts +242 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +3 -2
package/lib/action/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ILoginExtAccount, ISdkUserInfo,
|
|
1
|
+
import { ILoginExtAccount, ISdkUserInfo, IMeetingInfo, IToken, IGetConferenceParams, IMeetingInviteParams, IMediaConfigParam, LoginType, LoginParams, FocusViewAction, IStateParams } from '../type';
|
|
2
2
|
import Logger from '../tools/logger';
|
|
3
3
|
export interface ICommonParams {
|
|
4
4
|
securityKey: string;
|
|
5
|
+
callUri?: string;
|
|
5
6
|
}
|
|
6
7
|
declare class Action {
|
|
7
8
|
private logger;
|
|
@@ -132,11 +133,12 @@ declare class Action {
|
|
|
132
133
|
* 功能操作上报记录
|
|
133
134
|
*
|
|
134
135
|
* @private
|
|
135
|
-
* @param {
|
|
136
|
-
* @
|
|
137
|
-
* @
|
|
136
|
+
* @param { IStateParams | IStateParams[] } state
|
|
137
|
+
* @property { TCategory } category - 事件类别
|
|
138
|
+
* @property { TEventName } eventName - 事件名称
|
|
139
|
+
* @property { Objet } params - 事件详细数据
|
|
138
140
|
*/
|
|
139
|
-
setStates(
|
|
141
|
+
setStates(state: IStateParams | IStateParams[]): Promise<void>;
|
|
140
142
|
/**
|
|
141
143
|
* 监课模式不需要入会密码
|
|
142
144
|
*
|
|
@@ -149,10 +151,11 @@ declare class Action {
|
|
|
149
151
|
*
|
|
150
152
|
* @param { number } userId 用户ID
|
|
151
153
|
* @param { string } server 服务端地址
|
|
154
|
+
* @param { string } enterpriseId 企业ID
|
|
152
155
|
* @param { boolean } isSupportHybridCloud 是否支持混合云
|
|
153
156
|
* @returns
|
|
154
157
|
*/
|
|
155
|
-
getAllocation(userId: number, server: string, isSupportHybridCloud?: boolean): Promise<any>;
|
|
158
|
+
getAllocation(userId: number, server: string, enterpriseId: string, isSupportHybridCloud?: boolean): Promise<any>;
|
|
156
159
|
/**
|
|
157
160
|
* 获取会议室水印
|
|
158
161
|
*
|
|
@@ -241,6 +244,9 @@ declare class Action {
|
|
|
241
244
|
/**
|
|
242
245
|
* 获取企业相关配置(buffet), 包含头像配置
|
|
243
246
|
*
|
|
247
|
+
* 内部企业ID的话,uaa-api会在转发请求时,放在请求头带给后端服务。
|
|
248
|
+
* 服务端需要兼容下取参数的位置,如果他们之前的位置取不到内部企业ID,就从header头上的特定字段去取。
|
|
249
|
+
*
|
|
244
250
|
* @param { number } userId 用户ID
|
|
245
251
|
* @returns
|
|
246
252
|
*/
|
|
@@ -308,6 +314,13 @@ declare class Action {
|
|
|
308
314
|
* @returns
|
|
309
315
|
*/
|
|
310
316
|
setMeetingFocusView(deviceUri: string, action: FocusViewAction): Promise<any>;
|
|
317
|
+
/**
|
|
318
|
+
* 通过会控修改名称
|
|
319
|
+
*
|
|
320
|
+
* @param { string } newName - 新名称
|
|
321
|
+
* @returns
|
|
322
|
+
*/
|
|
323
|
+
rename(newName: string): Promise<any>;
|
|
311
324
|
/**
|
|
312
325
|
* 设置默认参数,如securityKey
|
|
313
326
|
*
|
package/lib/enum/errorCode.d.ts
CHANGED
package/lib/enum/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polling Layout enum
|
|
3
|
+
*
|
|
4
|
+
* @summary short description for the file
|
|
5
|
+
* @author JingHui Luo <luojinghui424@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Created at : 2024-02-28 18:30:52
|
|
8
|
+
* Last modified : 2024-03-08 19:05:02
|
|
9
|
+
*/
|
|
10
|
+
import { PollingLayout } from '../type/polling';
|
|
11
|
+
export declare const DEFAULT_POLLING_LAYOUT: PollingLayout;
|
package/lib/main/client.d.ts
CHANGED
|
@@ -79,13 +79,14 @@ export default class Client extends Emitter {
|
|
|
79
79
|
private operateQueue;
|
|
80
80
|
private facingMode;
|
|
81
81
|
private wsReConnectCount;
|
|
82
|
+
private recordStatusNotification;
|
|
82
83
|
private localSpeakerTimer;
|
|
83
84
|
private onDocumentChange;
|
|
84
85
|
constructor(config: IClientConfig, logger: Logger);
|
|
85
86
|
static instance: Client;
|
|
86
87
|
static getClientInstance(config: IClientConfig, logger: Logger): Client;
|
|
87
88
|
static getCustomLayoutItem(item: ILayout, resolution: number, quality: number): {
|
|
88
|
-
pid: number;
|
|
89
|
+
pid: number | undefined;
|
|
89
90
|
resolution: number;
|
|
90
91
|
quality: number;
|
|
91
92
|
mediagroupid: number;
|
|
@@ -341,11 +342,16 @@ export default class Client extends Emitter {
|
|
|
341
342
|
* 功能操作上报记录
|
|
342
343
|
*
|
|
343
344
|
* @private
|
|
344
|
-
* @param {
|
|
345
|
-
* @
|
|
346
|
-
* @
|
|
345
|
+
* @param { IStateParams | IStateParams[] } states
|
|
346
|
+
* @property { TCategory } category - 事件类别
|
|
347
|
+
* @property { TEventName } eventName - 事件名称
|
|
348
|
+
* @property { Objet } params - 事件详细数据
|
|
347
349
|
*/
|
|
348
350
|
private sendV2States;
|
|
351
|
+
/**
|
|
352
|
+
* 上报Web轮询能力
|
|
353
|
+
*/
|
|
354
|
+
private reportPollingCapability;
|
|
349
355
|
/**
|
|
350
356
|
* 切换布局
|
|
351
357
|
*
|
|
@@ -412,7 +418,7 @@ export default class Client extends Emitter {
|
|
|
412
418
|
*/
|
|
413
419
|
private onEPMessage;
|
|
414
420
|
/**
|
|
415
|
-
*
|
|
421
|
+
* 处理message消息
|
|
416
422
|
*
|
|
417
423
|
* @param data
|
|
418
424
|
*/
|
|
@@ -432,6 +438,10 @@ export default class Client extends Emitter {
|
|
|
432
438
|
* @param { IRecordStatusNotification } data
|
|
433
439
|
*/
|
|
434
440
|
private onRecordStatusNotfiMessage;
|
|
441
|
+
/**
|
|
442
|
+
* 上报远端录制状态
|
|
443
|
+
*/
|
|
444
|
+
private emitRecordStatusNotification;
|
|
435
445
|
/**
|
|
436
446
|
* 处理本地录制结果上报Message
|
|
437
447
|
*
|
|
@@ -736,6 +746,12 @@ export default class Client extends Emitter {
|
|
|
736
746
|
* @param { IMeetingControl } data 会控消息
|
|
737
747
|
*/
|
|
738
748
|
private onMeetingControlMessage;
|
|
749
|
+
/**
|
|
750
|
+
* 处理轮询多画面消息
|
|
751
|
+
*
|
|
752
|
+
* @param { string } customizedLayout - 轮询多画面消息字符串
|
|
753
|
+
*/
|
|
754
|
+
private handleCustomizedLayout;
|
|
739
755
|
/**
|
|
740
756
|
* 处理字幕、点名消息
|
|
741
757
|
*
|
|
@@ -760,6 +776,7 @@ export default class Client extends Emitter {
|
|
|
760
776
|
* @param { any } data 媒体消息
|
|
761
777
|
*/
|
|
762
778
|
private onPassThroughMessage;
|
|
779
|
+
nextPollingPage(): void;
|
|
763
780
|
/**
|
|
764
781
|
* 处理实时讲话人信息
|
|
765
782
|
*
|
|
@@ -978,7 +995,7 @@ export default class Client extends Emitter {
|
|
|
978
995
|
*/
|
|
979
996
|
sendSocketMessage(data: any, isAutoAdd?: boolean, isLog?: boolean): void;
|
|
980
997
|
/**
|
|
981
|
-
*
|
|
998
|
+
* 获取用户、会议室基本信息、上报终端能力
|
|
982
999
|
*
|
|
983
1000
|
* @param { ICall } params
|
|
984
1001
|
* @returns
|
|
@@ -1103,6 +1120,13 @@ export default class Client extends Emitter {
|
|
|
1103
1120
|
* @returns {Promise<InviteInfo>}
|
|
1104
1121
|
*/
|
|
1105
1122
|
getMeetingInviteInfo(): Promise<InviteInfo>;
|
|
1123
|
+
/**
|
|
1124
|
+
* 修改参会者名称,暂只支持修改Local名称
|
|
1125
|
+
*
|
|
1126
|
+
* @param { string } newName - 新名称
|
|
1127
|
+
* @param { string } rosterId - 需要修改的终端的rosterId, 无值则默认修改Local
|
|
1128
|
+
*/
|
|
1129
|
+
rename(newName: string, rosterId?: string): Promise<IReturnResult | undefined>;
|
|
1106
1130
|
/**
|
|
1107
1131
|
* 设置多分组通道,通用方法
|
|
1108
1132
|
*
|
package/lib/main/helper.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @email luojinghui424@gmail.com
|
|
6
6
|
*
|
|
7
7
|
* Created at : 2021-01-09 14:45:46
|
|
8
|
-
* Last modified : 2024-
|
|
8
|
+
* Last modified : 2024-02-29 15:03:32
|
|
9
9
|
*/
|
|
10
10
|
import { ILayout, IVideoManagerState, IRotationInfoTotalItem } from '../type';
|
|
11
11
|
export declare const getLayoutItemState: (item: ILayout | ILayout, stream: MediaStream | null, vmState: IVideoManagerState) => "REQUEST" | "NORMAL" | "MUTE" | "AUDIO_TEL" | "AUDIO_ONLY" | "AUDIO_CONTENT";
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
* @email luojinghui424@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* Created at : 2021-01-05 17:24:07
|
|
9
|
-
* Last modified : 2024-
|
|
9
|
+
* Last modified : 2024-03-12 16:43:11
|
|
10
10
|
*/
|
|
11
11
|
import Logger from '../../tools/logger';
|
|
12
|
-
import { ILayout, IVideoRenders, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, ContentTemplateMode, IMode, LayoutOrientationType, LayoutConfig } from '../../type/index';
|
|
12
|
+
import { ILayout, IVideoRenders, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, ContentTemplateMode, IMode, LayoutOrientationType, LayoutConfig, PollingState } from '../../type/index';
|
|
13
13
|
import Client from '../client';
|
|
14
|
+
import Polling from './polling';
|
|
14
15
|
export default class LayoutManager {
|
|
15
16
|
logger: Logger;
|
|
16
17
|
client: Client;
|
|
@@ -38,9 +39,10 @@ export default class LayoutManager {
|
|
|
38
39
|
private focusViewConfig;
|
|
39
40
|
private layoutOrientation;
|
|
40
41
|
private layoutConfig;
|
|
42
|
+
polling: Polling | null;
|
|
41
43
|
constructor(client: Client);
|
|
42
44
|
static getCustomLayoutItem(item: ILayout, resolution: StreamResolutionLevel, quality: VideoQuality): {
|
|
43
|
-
pid: number;
|
|
45
|
+
pid: number | undefined;
|
|
44
46
|
resolution: StreamResolutionLevel;
|
|
45
47
|
quality: VideoQuality;
|
|
46
48
|
mediagroupid: number;
|
|
@@ -70,11 +72,6 @@ export default class LayoutManager {
|
|
|
70
72
|
* @returns
|
|
71
73
|
*/
|
|
72
74
|
get isChairmanMode(): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* 是否是焦点模式
|
|
75
|
-
* forceLayout/content优先级大于对话模式
|
|
76
|
-
*/
|
|
77
|
-
get isFocusMode(): boolean;
|
|
78
75
|
getNewLayout(): ILayout[];
|
|
79
76
|
getOrderRosterList(): IRoster[];
|
|
80
77
|
getOriginOrderRosters(): IRoster[];
|
|
@@ -94,6 +91,10 @@ export default class LayoutManager {
|
|
|
94
91
|
getInternalsLayout(): IOutputCustomLayout;
|
|
95
92
|
getLocalShareState(): boolean;
|
|
96
93
|
getFocusRoster(): IRoster | null;
|
|
94
|
+
getFocusViewId(): string;
|
|
95
|
+
getLayoutOrientation(): LayoutOrientationType;
|
|
96
|
+
getPolling(): Polling | null;
|
|
97
|
+
getPollingState(): PollingState | undefined;
|
|
97
98
|
setOrderRosterList(orderRosterList: IRoster[]): void;
|
|
98
99
|
setOriginOrderRosters(originOrderRosters: IRoster[]): void;
|
|
99
100
|
/**
|
|
@@ -115,7 +116,7 @@ export default class LayoutManager {
|
|
|
115
116
|
*/
|
|
116
117
|
setContentRosterItem(content: IRoster | null): void;
|
|
117
118
|
/**
|
|
118
|
-
* 设置
|
|
119
|
+
* 设置confChangeInfo信息
|
|
119
120
|
*
|
|
120
121
|
* @param { IConfInfo } confInfo - Conf Change消息
|
|
121
122
|
*/
|
|
@@ -178,16 +179,29 @@ export default class LayoutManager {
|
|
|
178
179
|
*/
|
|
179
180
|
switchLayout(templateMode?: IMode): "SPEAKER" | "GALLERY" | "MULTI_PIC_CONTENT_HIGH_PRIORITY" | "MULTI_PIC_ACTIVE_HIGH_PRIORITY" | "TWO_PIC_PIP" | "CONTENT_ONLY" | "TWO_PIC_SYMMETRIC";
|
|
180
181
|
/**
|
|
181
|
-
*
|
|
182
|
+
* 本地切换主画面, GALLERY布局/会控设置焦点画面 不支持
|
|
182
183
|
*
|
|
183
|
-
* @param { string }
|
|
184
|
+
* @param { string } id - 指定切换到主画面的rosterId
|
|
184
185
|
* @returns { string } rosterId
|
|
185
186
|
*/
|
|
186
|
-
setFocusView(
|
|
187
|
+
setFocusView(id: string): string;
|
|
187
188
|
/**
|
|
188
189
|
* 更新Local video track
|
|
189
190
|
*/
|
|
190
191
|
updateLocalTrack(): void;
|
|
192
|
+
/**
|
|
193
|
+
* 获取Layout布局状态
|
|
194
|
+
*
|
|
195
|
+
* @returns { object }
|
|
196
|
+
*/
|
|
197
|
+
getLayoutState(): {
|
|
198
|
+
isForceLayout: boolean;
|
|
199
|
+
isInDialogMode: boolean;
|
|
200
|
+
isContentMode: boolean;
|
|
201
|
+
isPolling: boolean;
|
|
202
|
+
isInPolling: boolean;
|
|
203
|
+
isSwitchPollingPause: boolean;
|
|
204
|
+
};
|
|
191
205
|
/**
|
|
192
206
|
* [AUTO] 计算分页及请流信息
|
|
193
207
|
*/
|
|
@@ -234,10 +248,12 @@ export default class LayoutManager {
|
|
|
234
248
|
* @param { ILayoutRoster[] } totalLayoutResultList - layout数据
|
|
235
249
|
*/
|
|
236
250
|
createAutoLayout(totalLayoutResultList: ILayoutRoster[]): void;
|
|
251
|
+
createAutoPollingLayout(): void;
|
|
237
252
|
/**
|
|
238
253
|
* 创建Layout
|
|
239
254
|
*/
|
|
240
255
|
createLayout(): void;
|
|
256
|
+
sendContentRosterMessage(): void;
|
|
241
257
|
/**
|
|
242
258
|
* roster 排序
|
|
243
259
|
*/
|
|
@@ -264,6 +280,15 @@ export default class LayoutManager {
|
|
|
264
280
|
* 计算 custom layout 数据
|
|
265
281
|
*/
|
|
266
282
|
private customLayoutCalculator;
|
|
283
|
+
/**
|
|
284
|
+
* 更新Template Rate模版容器比例配置
|
|
285
|
+
*
|
|
286
|
+
* @param { { next: number; previous: number } } rate - 容器比例
|
|
287
|
+
*/
|
|
288
|
+
updateTemplateRate(rate: {
|
|
289
|
+
next: number;
|
|
290
|
+
previous: number;
|
|
291
|
+
}): void;
|
|
267
292
|
/**
|
|
268
293
|
* [AUTO] 1. 初始化Layout数据
|
|
269
294
|
*/
|
|
@@ -390,4 +415,8 @@ export default class LayoutManager {
|
|
|
390
415
|
* @param { IReqInfo[] } reqList - 请流数据
|
|
391
416
|
*/
|
|
392
417
|
requestLayout(reqList: IReqInfo[]): void;
|
|
418
|
+
/**
|
|
419
|
+
* 销毁资源
|
|
420
|
+
*/
|
|
421
|
+
destroy(): void;
|
|
393
422
|
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polling Layout Lib
|
|
3
|
+
*
|
|
4
|
+
* @summary mix auo polling layout function
|
|
5
|
+
* @author JingHui Luo <luojinghui424@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Created at : 2024-02-26 14:47:53
|
|
8
|
+
* Last modified : 2024-03-12 16:43:02
|
|
9
|
+
*/
|
|
10
|
+
import LayoutManager from './index';
|
|
11
|
+
import { IBulkRoster, ICustomizedLayout, IRoster, PollingLayout, PollingState } from '../../type';
|
|
12
|
+
import Client from '../client';
|
|
13
|
+
export default class Polling {
|
|
14
|
+
pollingMessage: ICustomizedLayout | null;
|
|
15
|
+
private pollingIntervalTimer;
|
|
16
|
+
private pollingInterval;
|
|
17
|
+
private client;
|
|
18
|
+
private pollingState;
|
|
19
|
+
private logger;
|
|
20
|
+
private skipMuteVideo;
|
|
21
|
+
private skipUnjoined;
|
|
22
|
+
private layoutManager;
|
|
23
|
+
private fullRosterMap;
|
|
24
|
+
private specifiedMap;
|
|
25
|
+
private speakerItem;
|
|
26
|
+
private autoPollingMap;
|
|
27
|
+
private pollingLayout;
|
|
28
|
+
private autoSpecified;
|
|
29
|
+
private customizedList;
|
|
30
|
+
private isHasSpeaker;
|
|
31
|
+
private pollingMode;
|
|
32
|
+
private cachePollingPause;
|
|
33
|
+
private isPollingConfigChange;
|
|
34
|
+
private isForceUpdateMode;
|
|
35
|
+
private cacheIsPolling;
|
|
36
|
+
constructor(client: Client, layout: LayoutManager);
|
|
37
|
+
getOrderRoster(): IRoster[] | undefined;
|
|
38
|
+
getPollingState(): PollingState;
|
|
39
|
+
getPollingLayout(): PollingLayout[];
|
|
40
|
+
/**
|
|
41
|
+
* 接收/处理会控轮询多画面消息,更新缓存数据
|
|
42
|
+
*
|
|
43
|
+
* @param { ICustomizedLayout } params - 轮询多画面数据
|
|
44
|
+
*/
|
|
45
|
+
handlePollingMessage(params: ICustomizedLayout): void;
|
|
46
|
+
/**
|
|
47
|
+
* 执行轮询多画面操作:启动/暂停
|
|
48
|
+
*/
|
|
49
|
+
operatePollingLayout(): void;
|
|
50
|
+
/**
|
|
51
|
+
* 启动轮询多画面
|
|
52
|
+
*/
|
|
53
|
+
private handleStartPollingLayout;
|
|
54
|
+
/**
|
|
55
|
+
* 暂停轮询多画面
|
|
56
|
+
*/
|
|
57
|
+
private handlePausePollingLayout;
|
|
58
|
+
/**
|
|
59
|
+
* 重置轮询多画面配置数据
|
|
60
|
+
*/
|
|
61
|
+
private resetPollingConfig;
|
|
62
|
+
/**
|
|
63
|
+
* 判断轮询多画面配置是否变动
|
|
64
|
+
*
|
|
65
|
+
* @param { ICustomizedLayout } params - 轮询多画面配置参数
|
|
66
|
+
* @returns { boolean } - 是否变动
|
|
67
|
+
*/
|
|
68
|
+
private checkPollingConfigChange;
|
|
69
|
+
/**
|
|
70
|
+
* 更新对比轮询多画面布局模型,重新计算模版信息
|
|
71
|
+
*
|
|
72
|
+
* @param { PollingModeItem } currentMode - 当前布局模型
|
|
73
|
+
* @param { PollingModeItem } previewMode - 上一次的布局模型
|
|
74
|
+
* @param { boolean } isForceUpdate - 是否强制更新模版
|
|
75
|
+
*/
|
|
76
|
+
private updateMode;
|
|
77
|
+
/**
|
|
78
|
+
* 创建轮询多画面基础数据
|
|
79
|
+
*/
|
|
80
|
+
private createPolling;
|
|
81
|
+
/**
|
|
82
|
+
* 创建轮询多画面分页数据
|
|
83
|
+
*/
|
|
84
|
+
private createPollingLayout;
|
|
85
|
+
/**
|
|
86
|
+
* 设置轮询多画面项模版数据
|
|
87
|
+
*
|
|
88
|
+
* @param { ITemplateObj[] | undefined } tempList - 模版List数据
|
|
89
|
+
* @param { PollingLayout } layout - LayoutMap数据结构
|
|
90
|
+
* @param { number } i - 索引位
|
|
91
|
+
*/
|
|
92
|
+
private setPollingLayoutTemplate;
|
|
93
|
+
/**
|
|
94
|
+
* 设置轮询多画面项Roster和ID数据
|
|
95
|
+
*
|
|
96
|
+
* @param { BasePollingItem | null } item - 基础数据
|
|
97
|
+
* @param { PollingLayout } layout - LayoutMap数据结构
|
|
98
|
+
* @param { string } id - RosterId/LayoutId数据
|
|
99
|
+
*/
|
|
100
|
+
private setPollingLayoutItem;
|
|
101
|
+
/**
|
|
102
|
+
* 根据pollingLayout创建请流列表
|
|
103
|
+
*/
|
|
104
|
+
private createRequestNewLayout;
|
|
105
|
+
/**
|
|
106
|
+
* 获取当前页的自动轮询列表数据
|
|
107
|
+
*
|
|
108
|
+
* @returns { BasePollingItem[] } - 分页列表数据
|
|
109
|
+
*/
|
|
110
|
+
private getCurrentPagePollingList;
|
|
111
|
+
/**
|
|
112
|
+
* 缓存所有指定成员列表,用户后续对比,避免自动循环列表中包含这些数据
|
|
113
|
+
*/
|
|
114
|
+
private calculateSpecifiedMap;
|
|
115
|
+
/**
|
|
116
|
+
* 获取过滤后的自动轮询列表数据
|
|
117
|
+
*
|
|
118
|
+
* @param { BaseSpecifiedInfo[] } list - 基础的轮询列表数据
|
|
119
|
+
* @returns { BasePollingItem[] } - 过滤后的轮询数据
|
|
120
|
+
*/
|
|
121
|
+
private getPollingListAndFilter;
|
|
122
|
+
/**
|
|
123
|
+
* 基于过滤条件向轮询列表填充数据
|
|
124
|
+
*
|
|
125
|
+
* @param { BasePollingItem[] } pollingList - 轮询列表
|
|
126
|
+
* @param { BasePollingItem } data - 需要追加的数据
|
|
127
|
+
* @param { boolean } isLocal - 是否是Local
|
|
128
|
+
*/
|
|
129
|
+
private appendDataToPollingList;
|
|
130
|
+
/**
|
|
131
|
+
* 预创建自动轮询列表
|
|
132
|
+
*/
|
|
133
|
+
private calculateAutoPollingMap;
|
|
134
|
+
/**
|
|
135
|
+
* 计算自动轮询分页信息
|
|
136
|
+
*
|
|
137
|
+
* @param { BasePollingItem[] } pollingList - 自动轮询列表
|
|
138
|
+
*/
|
|
139
|
+
private calculateAutoPollingPageInfo;
|
|
140
|
+
/**
|
|
141
|
+
* 创建Active Speaker数据
|
|
142
|
+
*/
|
|
143
|
+
private calculateSpeaker;
|
|
144
|
+
/**
|
|
145
|
+
* 计算指定的DI是否包含在自动循环列表中
|
|
146
|
+
*
|
|
147
|
+
* @param { string } di - 需要查询的DI数据
|
|
148
|
+
* @param { boolean } current - 是否指定当前页查询
|
|
149
|
+
* @returns { boolean } - 返回是否包含
|
|
150
|
+
*/
|
|
151
|
+
private isIncludeSpecifiedAutoList;
|
|
152
|
+
/**
|
|
153
|
+
* 计算指定的DI是否包含在指定循环列表中
|
|
154
|
+
*
|
|
155
|
+
* @param { string } di - 需要查询的DI数据
|
|
156
|
+
* @param { boolean } currentPage - 是否指定当前页查询
|
|
157
|
+
* @returns { boolean } - 返回是否包含
|
|
158
|
+
*/
|
|
159
|
+
private isIncludeSpecifiedMap;
|
|
160
|
+
/**
|
|
161
|
+
* 查找可用的替换AS数据的人员
|
|
162
|
+
*/
|
|
163
|
+
private findNextSpeaker;
|
|
164
|
+
/**
|
|
165
|
+
* 启动轮询多画面定时器
|
|
166
|
+
*/
|
|
167
|
+
private startPollingInterval;
|
|
168
|
+
/**
|
|
169
|
+
* 启动轮询多画面
|
|
170
|
+
*/
|
|
171
|
+
startPolling(): void;
|
|
172
|
+
/**
|
|
173
|
+
* 暂停轮询多画面
|
|
174
|
+
*/
|
|
175
|
+
pausePolling(state: PollingState): void;
|
|
176
|
+
/**
|
|
177
|
+
* 推送轮询的启用状态
|
|
178
|
+
*/
|
|
179
|
+
emitPollingState(): void;
|
|
180
|
+
/**
|
|
181
|
+
* 清理轮询定时器
|
|
182
|
+
*/
|
|
183
|
+
clearPollingTimer(): void;
|
|
184
|
+
/**
|
|
185
|
+
* 语音激励变化
|
|
186
|
+
*/
|
|
187
|
+
handleSpeakersInfo(): void;
|
|
188
|
+
/**
|
|
189
|
+
* 20路排好序的Roster消息变更
|
|
190
|
+
*/
|
|
191
|
+
setOrderRoster(): void;
|
|
192
|
+
/**
|
|
193
|
+
* 订阅Roster变更消息
|
|
194
|
+
*
|
|
195
|
+
* @param { IBulkRoster } params - 数据内容
|
|
196
|
+
*/
|
|
197
|
+
setBulkRoster(params: IBulkRoster): void;
|
|
198
|
+
/**
|
|
199
|
+
* 追加新增加的Roster数据
|
|
200
|
+
*
|
|
201
|
+
* @param { IRoster[] } addRosterInfo - 新增Roster列表数据
|
|
202
|
+
*/
|
|
203
|
+
private appendFullRoster;
|
|
204
|
+
/**
|
|
205
|
+
* 接收到LayoutResult后,更新模版
|
|
206
|
+
*/
|
|
207
|
+
handleLayoutResult(): void;
|
|
208
|
+
/**
|
|
209
|
+
* 翻页
|
|
210
|
+
*/
|
|
211
|
+
nextPage(): void;
|
|
212
|
+
/**
|
|
213
|
+
* 销毁资源
|
|
214
|
+
*/
|
|
215
|
+
destroy(): void;
|
|
216
|
+
}
|
|
@@ -19,10 +19,10 @@ declare class TemplateManager {
|
|
|
19
19
|
*/
|
|
20
20
|
getTemplate({ modeType, currentCount, participantCount, isEnableHideLocalView, isChairmanMode, templateType, orientation, focusViewConfig, isInDialogMode }: TemplateParams): TemplateInfo;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 处理指定的焦点画面模版信息
|
|
23
23
|
*
|
|
24
|
-
* @param { ITemplateObj[] } newTemplate 模版信息
|
|
25
|
-
* @param { FocusViewConfig } focusViewConfig
|
|
24
|
+
* @param { ITemplateObj[] } newTemplate - 模版信息
|
|
25
|
+
* @param { FocusViewConfig } focusViewConfig - 指定的焦点画面的信息
|
|
26
26
|
*/
|
|
27
27
|
private handleForceView;
|
|
28
28
|
/**
|
package/lib/main/meeting.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Meeting Info Control
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2022-10-27 13:58:22
|
|
5
|
-
* Last modified : 2024-
|
|
5
|
+
* Last modified : 2024-03-06 18:52:25
|
|
6
6
|
*/
|
|
7
7
|
import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, IMeetingControl, FocusViewAction } from '../type';
|
|
8
8
|
import Client from './client';
|
|
@@ -138,6 +138,13 @@ declare class Meeting {
|
|
|
138
138
|
* @returns
|
|
139
139
|
*/
|
|
140
140
|
setMeetingFocusView(endpointId: string, action: FocusViewAction): Promise<import("../type").IReturnResult>;
|
|
141
|
+
/**
|
|
142
|
+
* 修改参会者名称,目前仅支持修改Local
|
|
143
|
+
*
|
|
144
|
+
* @param { string } newName - 新名称
|
|
145
|
+
* @param { string } rosterId - 需要修改的终端的rosterId, 无值则默认修改Local
|
|
146
|
+
*/
|
|
147
|
+
rename(newName: string, rosterId?: string, callback?: () => void): Promise<import("../type").IReturnResult | undefined>;
|
|
141
148
|
/**
|
|
142
149
|
* 企业配置信息
|
|
143
150
|
*
|
package/lib/tools/quality.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* WebRTC SDK Quality Manager
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2023-04-27 15:27:15
|
|
5
|
-
* Last modified :
|
|
5
|
+
* Last modified : 2024-03-06 11:33:44
|
|
6
6
|
*/
|
|
7
7
|
import { IInternals, IWorkerVideoReceiver, IVideoReceiverMessage, IQualityConfig } from '../type';
|
|
8
8
|
declare class Quality {
|