@xylink/xy-rtc-sdk 4.0.6 → 4.0.7

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.
Files changed (57) hide show
  1. package/README.md +4 -6
  2. package/action/ability.d.ts +82 -0
  3. package/action/api.d.ts +40 -3
  4. package/action/auth.d.ts +32 -1
  5. package/action/index.d.ts +4 -0
  6. package/action/index.type.d.ts +3 -1
  7. package/action/meeting.d.ts +20 -0
  8. package/enum/client.d.ts +3 -1
  9. package/enum/constraints.d.ts +104 -1
  10. package/enum/customizedkey.d.ts +10 -0
  11. package/enum/doc.d.ts +13 -0
  12. package/enum/errorCode/index.d.ts +3 -0
  13. package/enum/polling.d.ts +9 -0
  14. package/feature/artboard/index.d.ts +1 -0
  15. package/feature/customMessage/index.d.ts +7 -0
  16. package/feature/electron/index.d.ts +25 -0
  17. package/feature/index.d.ts +4 -0
  18. package/interface/contentTrackInterface.type.d.ts +0 -1
  19. package/interface/event.type.d.ts +13 -0
  20. package/main/auth/index.d.ts +12 -1
  21. package/main/auth/index.type.d.ts +24 -0
  22. package/main/client/index.d.ts +44 -5
  23. package/main/layout/index.d.ts +1 -1
  24. package/main/layout/polling.d.ts +132 -10
  25. package/main/media/index.d.ts +4 -0
  26. package/main/media/index.type.d.ts +11 -1
  27. package/main/meeting/control.d.ts +19 -2
  28. package/main/meeting/index.d.ts +21 -4
  29. package/main/meeting/index.type.d.ts +25 -4
  30. package/main/quality/index.d.ts +17 -0
  31. package/main/render/videoManager.d.ts +6 -2
  32. package/main/roster/index.d.ts +7 -0
  33. package/main/server/index.d.ts +1 -0
  34. package/main/signal/index.type.d.ts +5 -0
  35. package/main/signal/reconnection.d.ts +46 -0
  36. package/main/socket/index.d.ts +2 -2
  37. package/main/track/baseTrack.d.ts +7 -4
  38. package/main/track/contentCapture.d.ts +59 -0
  39. package/main/track/contentTrack.d.ts +50 -38
  40. package/main/track/helper.d.ts +2 -11
  41. package/package.json +4 -4
  42. package/tools/aes.d.ts +33 -0
  43. package/tools/log/db.d.ts +1 -1
  44. package/tools/socket/socketManager.d.ts +1 -0
  45. package/tools/utils.d.ts +8 -0
  46. package/type/ability.d.ts +3 -1
  47. package/type/action.d.ts +2 -0
  48. package/type/base.d.ts +13 -0
  49. package/type/client.d.ts +36 -5
  50. package/type/index.d.ts +3 -0
  51. package/type/logger.d.ts +13 -1
  52. package/type/meeting.d.ts +7 -13
  53. package/type/polling.d.ts +12 -0
  54. package/type/socket.d.ts +2 -0
  55. package/type/stream.d.ts +38 -9
  56. package/type/track.d.ts +95 -6
  57. package/xyrtc.js +7767 -4551
@@ -60,3 +60,27 @@ export declare enum XYLoginState {
60
60
  */
61
61
  TokenRefresh = "TokenRefresh"
62
62
  }
63
+ /**
64
+ * 小鱼账号配置
65
+ *
66
+ * @property { boolean } enhancePassword - 不校验密码安全策略
67
+ * @property { number } passwordLength - 密码长度(暂时无用)
68
+ */
69
+ export interface XYAccountConfig {
70
+ enhancePassword: boolean;
71
+ passwordLength: number;
72
+ }
73
+ /**
74
+ * 重置密码参数
75
+ *
76
+ * @property { string } account - 用户账号
77
+ * @property { string } password - 旧密码, 如果是验证码登录,此值可不传
78
+ * @property { string } newPassword - 新密码
79
+ * @property { string } verificationCode - 验证码, 如果是账号密码登录,此值可不传
80
+ */
81
+ export interface XYResetPasswordParams {
82
+ account: string;
83
+ password?: string;
84
+ newPassword: string;
85
+ verificationCode?: string;
86
+ }
@@ -22,12 +22,14 @@ import { XYSignal } from '../signal';
22
22
  import { default as ServerManager } from '../server';
23
23
  import { XYServerInfo } from '../server/index.type';
24
24
  import { XYEDU } from '../../feature/edu';
25
+ import { XYElectron } from '../../feature/index';
25
26
  import { default as RosterManager } from '../roster';
26
27
  import { XYIMClient } from '../../feature/im';
27
28
  import { XYMemberDepartment } from '../../feature/query/index.type';
28
- import { CheckCaptchaImageParams, LoginOtherParams } from '../auth/index.type';
29
+ import { CheckCaptchaImageParams, LoginOtherParams, XYResetPasswordParams } from '../auth/index.type';
29
30
  import { XY_WHITEBOARD_DATA } from '../../feature/artboard/index.type';
30
31
  import { XYVepManager } from '../../feature/vep';
32
+ import { XYReconnectionManager } from '../signal/reconnection';
31
33
  export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
32
34
  logger: Logger;
33
35
  private action;
@@ -68,6 +70,8 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
68
70
  private vepManager?;
69
71
  private translationManager;
70
72
  private socketManager;
73
+ private reconnectionManager;
74
+ private electron;
71
75
  private onDocumentChange;
72
76
  constructor(config: IClientConfig, logger: Logger);
73
77
  static instance: XYRTCClient;
@@ -107,6 +111,7 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
107
111
  getMeetingControl(): XYMeetingControl;
108
112
  getImClient(): XYIMClient | null;
109
113
  getVepManager(): XYVepManager | undefined;
114
+ getElectron(): XYElectron | null;
110
115
  /**
111
116
  * 获取服务器地址
112
117
  *
@@ -164,6 +169,19 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
164
169
  * 会控消息
165
170
  */
166
171
  getMeetingControlInfo(): import('../../type/index').IMeetingControl | null;
172
+ /**
173
+ * 重呼管理模块
174
+ *
175
+ * @returns { XYReconnectionManager }
176
+ */
177
+ getReconnectionManager(): XYReconnectionManager;
178
+ /**
179
+ * 获取Electron桌面采集器
180
+ *
181
+ * @since 4.0.5
182
+ * @returns { DesktopCapturer | null } - Electron桌面采集器
183
+ */
184
+ getDesktopCapturer(): any;
167
185
  /**
168
186
  * 设置Client相关信息
169
187
  *
@@ -354,6 +372,17 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
354
372
  * @returns { Promise<IReturnResult> } - 登录结果
355
373
  */
356
374
  loginXYLinkByVerifyCode(params: LoginVerifyCodeParams): Promise<IReturnResult>;
375
+ /**
376
+ * 重置密码
377
+ * 调用时机:登录后,重置密码时调用
378
+ * 使用场景:仅适用于小鱼账号登录(loginXYlinkAccount),其他登录方式不支持此功能
379
+ *
380
+ * @param { string } account - 用户账号
381
+ * @param { string } password - 旧密码
382
+ * @param { string } newPassword - 新密码
383
+ * @returns { Promise<IReturnResult> } - 修改密码结果
384
+ */
385
+ resetPassword(params: XYResetPasswordParams): Promise<IReturnResult>;
357
386
  /**
358
387
  * 获取图片验证码
359
388
  *
@@ -400,7 +429,8 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
400
429
  * @property { boolean } config.enableMeetingShout - 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
401
430
  * @property { boolean } config.enableV2States - 是否启用小鱼数据上报功能,默认启用,设置为true,支持会中动态切换;
402
431
  * @property { boolean } config.enableCheckRecordPermission - 是否启用录制权限查询功能,默认不启用,设置为false;
403
- * @property { boolean } config.enableBandwidthSetting - 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
432
+ * @since 4.0.7 enableBandwidthSetting默认值改为true
433
+ * @property { boolean } config.enableBandwidthSetting - 是否启用管理平台带宽控制(双向),默认启用,设置为true;
404
434
  * @property { boolean } config.enableMeetingInvite - 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
405
435
  * @property { boolean } config.enableMeetingOwner - 是否启用查询会议Owner信息,默认不启用,设置为false;
406
436
  * @property { boolean } config.enableAutoResizeLayout - 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
@@ -1218,7 +1248,7 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
1218
1248
  * @param { string } displayName - 入会名称
1219
1249
  * @returns
1220
1250
  */
1221
- checkSensitiveWord(displayName: string): Promise<import('../meeting/index.type').XYSensitiveWords | null>;
1251
+ checkSensitiveWord(displayName: string): Promise<import('../../type/index').XYSensitiveWords | null>;
1222
1252
  /**
1223
1253
  * 获取个人云会议室信息
1224
1254
  */
@@ -1228,13 +1258,13 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
1228
1258
  *
1229
1259
  * @returns { Promise<XYEnterpriseInfo> } - 企业信息
1230
1260
  */
1231
- getEnterpriseInfo(): Promise<import('../meeting/index.type').XYEnterpriseInfo>;
1261
+ getEnterpriseInfo(): Promise<import('../../type/index').XYEnterpriseInfo>;
1232
1262
  /**
1233
1263
  * 获取管理平台角色相关权限,包含录制权限
1234
1264
  *
1235
1265
  * @returns { Promise<XYUicustomization> } - 权限信息
1236
1266
  */
1237
- getUicustomization(): Promise<import('../meeting/index.type').XYUicustomization>;
1267
+ getUicustomization(): Promise<import('../../type/index').XYUicustomization>;
1238
1268
  /**
1239
1269
  * 开始白板分享
1240
1270
  *
@@ -1339,6 +1369,15 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
1339
1369
  * @param { boolean } blockSendSocket - 可选,是否阻止发送Socket挂断消息,默认是false,不阻止
1340
1370
  */
1341
1371
  destroy(reason?: string, blockSendSocket?: boolean): Promise<boolean>;
1372
+ /**
1373
+ * 重置入会成功之后的会议信息
1374
+ */
1375
+ clearInvite(): void;
1376
+ /**
1377
+ * 异常情况下,停止某些操作并上报用户
1378
+ * 包含录制、白板(建行暂时不支持)等等
1379
+ */
1380
+ stopActionsAndReport(): void;
1342
1381
  /**
1343
1382
  * 关闭当前会议,重置数据和销毁相关资源
1344
1383
  */
@@ -259,7 +259,7 @@ export default class LayoutManager {
259
259
  /**
260
260
  * 计算Layout Container的容器信息
261
261
  */
262
- calculateScreenInfo(): false | this;
262
+ calculateScreenInfo(): this;
263
263
  /**
264
264
  * 计算Layout Container的容器信息
265
265
  *
@@ -1,5 +1,5 @@
1
1
  import { default as LayoutManager } from './index';
2
- import { ICustomizedLayout, ILayout, IRoster, PollingState } from '../../type/index';
2
+ import { ICustomizedLayout, ILayout, IRoster, PollingState, TemplateMode } from '../../type/index';
3
3
  import { default as Client } from '../client';
4
4
  export default class Polling {
5
5
  pollingMessage: ICustomizedLayout | null;
@@ -10,15 +10,18 @@ export default class Polling {
10
10
  private logger;
11
11
  private skipMuteVideo;
12
12
  private skipUnjoined;
13
- private layoutManager;
13
+ private speakerPriority;
14
+ private isSetPollingSpeaker;
15
+ private isSymmetricLayout;
14
16
  private specifiedMap;
15
17
  private speakerItem;
16
18
  private autoPollingMap;
17
19
  private pollingLayout;
18
20
  private autoSpecified;
19
21
  private customizedList;
20
- private isHasSpeaker;
21
22
  private pollingMode;
23
+ private layoutManager;
24
+ private cacheUnmuteSpeakerRoster;
22
25
  private cachePollingPause;
23
26
  private isPollingConfigChange;
24
27
  private isForceUpdateMode;
@@ -39,6 +42,12 @@ export default class Polling {
39
42
  * @param { ICustomizedLayout } params - 轮询多画面数据
40
43
  */
41
44
  handlePollingMessage(params: ICustomizedLayout): void;
45
+ /**
46
+ * 获取当前轮询布局模式
47
+ *
48
+ * @returns { TemplateMode } - 布局模式
49
+ */
50
+ getTemplateMode(): TemplateMode;
42
51
  /**
43
52
  * 执行轮询多画面操作:启动/暂停
44
53
  */
@@ -79,13 +88,120 @@ export default class Polling {
79
88
  */
80
89
  private createPollingLayout;
81
90
  /**
82
- * 设置轮询多画面项模版数据
91
+ * 更新轮询多画面布局
83
92
  *
84
- * @param { ITemplateObj[] | undefined } tempList - 模版List数据
85
- * @param { PollingLayout } layout - LayoutMap数据结构
86
- * @param { number } i - 索引位
93
+ * 2025/07/25需求实现梳理的规则:
94
+ * 1、如果开启了优先显示语音激励开关,并且没有设置语音激励窗口
95
+ * - 1.1 如果是对称布局
96
+ * - 1.1.1 如果存在AS,且AS不存在画面中,则将AS显示到左上角第一个窗口
97
+ * - 1.1.2 如果存在AS,且AS在当前画面其他窗口,无需移动,原AS窗口需要标记篮框
98
+ * - 1.1.3 如果没有可用AS,则按照原窗口规则显示,无需处理
99
+ * - 1.2 如果是非对称布局
100
+ * - 1.2.1 如果当前列表存在AS,且不是大画面,则将AS和大画面互换(注意大画面和原AS位置是否存在可用值)
101
+ * - 1.2.2 如果当前列表不存在AS,且存在可用AS,则使用AS替换大画面位置(需要判断大画面位置是否存在可用值)
102
+ * - 1.2.3 如果没有可用AS,则显示原指定窗口画面,无需处理
103
+ * 2、如果开启了优先显示语音激励开关,设置了语音激励窗口
104
+ * - 无需处理
105
+ * 3、如果没有开启优先显示语音激励开关,则不做处理
106
+ * - 无需处理
107
+ *
108
+ * @param { ILayout[] } pollingLayout - 轮询多画面布局
109
+ * @returns { ILayout[] } - 轮询多画面布局
110
+ */
111
+ private updatePollingLayout;
112
+ /**
113
+ * 重置上一轮中轮询多画面布局中AS的状态,避免AS状态错乱
114
+ */
115
+ private resetPollingLayoutActiveSpeakerState;
116
+ /**
117
+ * 设置语音激励布局项到指定位置
118
+ *
119
+ * @param { ILayout[] } pollingLayout - 轮询多画面布局
120
+ * @param { BasePollingItem } speakerItem - 语音激励项数据
121
+ * @param { number } targetIndex - 目标位置索引
122
+ */
123
+ private setSpeakerLayoutItem;
124
+ /**
125
+ * 更新对称布局
126
+ * - 1.1 对称布局
127
+ * - 1.1.1 如果存在AS,且AS不存在画面中,则将AS显示到左上角第一个窗口
128
+ * - 1.1.2 如果存在AS,且AS在当前画面其他窗口,无需移动,原AS窗口需要标记篮框
129
+ * - 1.1.3 如果没有可用AS,则按照原窗口规则显示,无需处理
130
+ *
131
+ * @param { ILayout[] } pollingLayout - 轮询多画面布局
132
+ * @returns { ILayout[] } - 轮询多画面布局
87
133
  */
88
- private setPollingLayoutTemplate;
134
+ private updateSymmetricLayout;
135
+ /**
136
+ * 设置布局项为语音激励状态
137
+ *
138
+ * @param { ILayout } layoutItem - 布局项
139
+ */
140
+ private setLayoutItemActiveSpeaker;
141
+ /**
142
+ * 更新非对称布局
143
+ * - 1.2 如果是非对称布局
144
+ * - 1.2.1 如果当前列表存在AS,且不是大画面,则将AS和大画面互换(注意大画面和原AS位置是否存在可用值)
145
+ * - 1.2.2 如果当前列表不存在AS,且存在可用AS,则使用AS替换大画面位置(需要判断大画面位置是否存在可用值)
146
+ * - 1.2.3 如果没有可用AS,则显示原指定窗口画面,无需处理
147
+ *
148
+ * @param { ILayout[] } pollingLayout - 轮询多画面布局
149
+ * @returns { ILayout[] } - 轮询多画面布局
150
+ */
151
+ private updateAsymmetricLayout;
152
+ /**
153
+ * 交换两个布局项的位置
154
+ *
155
+ * @param { ILayout[] } pollingLayout - 轮询多画面布局
156
+ * @param { number } indexA - 位置A
157
+ * @param { number } indexB - 位置B
158
+ */
159
+ private swapLayoutItems;
160
+ /**
161
+ * 创建轮询多画面基础布局
162
+ *
163
+ * @param { ITemplateObj[] } tempList - 模版List数据
164
+ * @param { number } index - 索引位
165
+ * @returns { ILayout } - 基础布局数据
166
+ */
167
+ private createBaseTemplateLayout;
168
+ /**
169
+ * 创建轮询多画面布局项
170
+ *
171
+ * @param { CustomizedItem } item - 布局项数据
172
+ * @param { number } index - 索引位
173
+ * @param { number } autoPollingIndex - 自动轮询索引位
174
+ * @returns { XYPollingLayoutItemData } - 布局项数据
175
+ */
176
+ private createLayoutItemByType;
177
+ /**
178
+ * 创建语音激励布局项
179
+ *
180
+ * @param { number } index - 索引位
181
+ * @returns { XYPollingLayoutItemData } - 布局项数据
182
+ */
183
+ private createSpeakerLayoutItem;
184
+ /**
185
+ * 创建手动指定轮询布局项
186
+ *
187
+ * @param { number } index - 索引位
188
+ * @param { CustomizedItem } item - 布局项数据
189
+ * @returns { XYPollingLayoutItemData } - 布局项数据
190
+ */
191
+ private createSpecifiedLayoutItem;
192
+ /**
193
+ * 创建自动轮询布局项
194
+ *
195
+ * @param { number } index - 索引位
196
+ * @param { number } autoPollingIndex - 自动轮询索引位
197
+ * @returns { XYPollingLayoutItemData } - 布局项数据
198
+ */
199
+ private createAutoLayoutItem;
200
+ /**
201
+ * 生成自定义Layout Polling ID
202
+ * 目的是画面重复渲染时,支持生成唯一的ID字段
203
+ */
204
+ private generateCustomId;
89
205
  /**
90
206
  * 获取当前全量roster信息Map
91
207
  *
@@ -140,9 +256,15 @@ export default class Polling {
140
256
  */
141
257
  private calculateAutoPollingPageInfo;
142
258
  /**
143
- * 创建Active Speaker数据
259
+ * 计算Active Speaker数据(窗口指定语音激励模式)
260
+ * 窗口指定语音激励时:AS获取: 媒体一路AS > roster排序(排除Local,content) > null
261
+ */
262
+ private calculateCommonActiveSpeaker;
263
+ /**
264
+ * 获取Active Speaker数据(启用AS优先开关模式)
265
+ * 开启优先显示语音激励开关时:获取可用AS的规则: 媒体一路AS + audio unmute > Local audio unmute > null(原窗口设定规则)
144
266
  */
145
- private calculateSpeaker;
267
+ private calculateUnmuteActiveSpeaker;
146
268
  /**
147
269
  * 计算指定的DI是否包含在指定循环列表中
148
270
  *
@@ -36,6 +36,10 @@ export declare class XYMediaManager implements XYBaseModule {
36
36
  * 监听Peer模块上Track轨道数据
37
37
  */
38
38
  handleTrackEvent(e: RTCTrackEvent): void;
39
+ /**
40
+ * 获取当前语音激励的Roster
41
+ */
42
+ getActiveSpeakerRoster(): IRoster | null;
39
43
  /**
40
44
  * 合并Track轨道数据
41
45
  *
@@ -1,4 +1,4 @@
1
- import { ILayoutRoster } from '../../type/index';
1
+ import { ILayoutRoster, IRoster } from '../../type/index';
2
2
  /**
3
3
  * 请流结果数据结构
4
4
  */
@@ -27,3 +27,13 @@ export interface XYMultiGroupInfo {
27
27
  endpointId: string;
28
28
  mediagrps: XYMediaGrps[];
29
29
  }
30
+ /**
31
+ * 参会者列表数据结构
32
+ *
33
+ * @property { IRoster[] } rosters - 参会者列表
34
+ * @property { IRoster[] } hiddenRosterInfo - 隐藏的参会者列表
35
+ */
36
+ export interface XYRosters {
37
+ rosters: IRoster[];
38
+ hiddenRosterInfo: IRoster[];
39
+ }
@@ -10,9 +10,12 @@ export declare class XYMeetingControl implements XYBaseModule {
10
10
  private recordStatusNotification;
11
11
  private recordState;
12
12
  private signInServerAPI;
13
+ private signInServerPromise;
14
+ private interactiveToolInfo;
13
15
  constructor(client: XYRTCClient);
14
16
  destroy(): void;
15
17
  getOnHold(): boolean;
18
+ getHandStatus(): boolean;
16
19
  /**
17
20
  * 设置本地是否在等候室
18
21
  *
@@ -40,11 +43,17 @@ export declare class XYMeetingControl implements XYBaseModule {
40
43
  */
41
44
  handleRealTimeNotificationMessage(data: OriginalRealTimeNotification): Promise<void>;
42
45
  /**
43
- * 通过serverconfig获取签到url
46
+ * 通过serverConfig获取签到url
44
47
  *
45
- * @param { string } urlPropv3 - 签到url key
48
+ * @param { string } urlPropKey - 签到url key
46
49
  */
47
50
  private getSignInServer;
51
+ /**
52
+ * 实际执行获取签到服务器的请求
53
+ *
54
+ * @param { string } urlPropKey - 签到url key
55
+ */
56
+ private fetchSignInServer;
48
57
  /**
49
58
  * 获取签到文案
50
59
  *
@@ -120,6 +129,14 @@ export declare class XYMeetingControl implements XYBaseModule {
120
129
  emitRecordStatusNotification(): void;
121
130
  /**
122
131
  * 停止云端录制
132
+ *
133
+ * 调用时机: 用户手动调用
123
134
  */
124
135
  stopCloudRecord(): IReturnResult | Promise<never>;
136
+ /**
137
+ * 停止云端录制
138
+ *
139
+ * 调用时机: 重呼时,上报给用户停止云端录制
140
+ */
141
+ stopCloudRecordAndReport(): void;
125
142
  }
@@ -1,6 +1,6 @@
1
1
  import { IConferenceInfo, IRecordPermission, IExportUserInfo, ILayout, IMediaConfig, IReqInfo, IEnterpriseConfig, LayoutAvatarType, TLayoutMap, InviteInfo, MEETING_DIRECTION, IVideoProfile, IMeetingControl, FocusViewAction } from '../../type/index';
2
2
  import { default as Client } from '../client';
3
- import { XYConferencePropertiesMessage, XYEnterpriseInfo, XYUicustomization } from './index.type';
3
+ import { XYEnterpriseInfo, XYUicustomization } from './index.type';
4
4
  declare class Meeting {
5
5
  private client;
6
6
  private logger;
@@ -13,8 +13,13 @@ declare class Meeting {
13
13
  private enterpriseConfig;
14
14
  private userInfo;
15
15
  private meetingControlInfo;
16
+ private mmsSubtitle;
16
17
  constructor(client: Client);
17
18
  destroy(): void;
19
+ /**
20
+ * 通话字幕状态-是否可用
21
+ */
22
+ get isSubtitleEnabled(): boolean;
18
23
  getRecordPermission(): IRecordPermission;
19
24
  getLayoutImageAvatarMap(): Map<string, {
20
25
  url: string;
@@ -77,6 +82,12 @@ declare class Meeting {
77
82
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
78
83
  */
79
84
  getCloudMeetingRooms(): Promise<any>;
85
+ /**
86
+ * 获取个人云会议配置
87
+ * 说明:2024/5/23农商行需求分区云调用,ones id: #364882
88
+ * 此接口获取两个个人云会议室配置开关,通过charge接口获取
89
+ */
90
+ getCloudMeetingRoomsConfig(): Promise<void>;
80
91
  /**
81
92
  * 获取会议控制信息, 包含是否是主持人、是否需要会控密码
82
93
  *
@@ -189,9 +200,9 @@ declare class Meeting {
189
200
  /**
190
201
  * 处理云会议室属性消息
191
202
  *
192
- * @param { XYConferencePropertiesMessage } data - 云会议室属性消息
203
+ * @param { Record<string, any> } data - 云会议室属性消息
193
204
  */
194
- handleConferencePropertiesMessage(data: XYConferencePropertiesMessage): void;
205
+ handleConferencePropertiesMessage(data: Record<string, any>): void;
195
206
  /**
196
207
  * 获取管理平台角色相关权限,包含录制权限
197
208
  *
@@ -210,6 +221,12 @@ declare class Meeting {
210
221
  * @param { string } displayName - 入会名称
211
222
  * @returns
212
223
  */
213
- checkSensitiveWord(displayName: string): Promise<import('./index.type').XYSensitiveWords | null>;
224
+ checkSensitiveWord(displayName: string): Promise<import('../../type/index').XYSensitiveWords | null>;
225
+ /**
226
+ * 处理通话字幕、转写状态变更事件
227
+ *
228
+ * @param { Record<string, any> } data - 通话字幕、转写状态变更事件
229
+ */
230
+ handleTranscriptionStatus(data: Record<string, any>): void;
214
231
  }
215
232
  export default Meeting;
@@ -1,3 +1,4 @@
1
+ import { XYCommonState } from '../../type/base';
1
2
  /**
2
3
  * 企业配置相关信息
3
4
  *
@@ -29,15 +30,35 @@ export interface XYSensitiveWords {
29
30
  /**
30
31
  * 会议属性
31
32
  *
32
- * @property { string } enableContentLive - 是否开启了多路内容共享
33
- * @property { string } enableContentLiveOnHold - 是否开启了指定内容广播
33
+ * @property { boolean } enableContentLive - 是否开启了多路内容共享
34
+ * @property { boolean } enableContentLiveOnHold - 是否开启了指定内容广播
34
35
  * @property { string } shareChatContentPermission - 共享聊天内容权限
35
36
  * @since 4.0.2
36
37
  * @property { string } confRoomOwnerList - 会议室owner列表
38
+ * @since 4.0.6
39
+ * @property { boolean } professionalMC - 是否显示会控专业模式
40
+ * @property { boolean } manageSubtitle - 是否开启字幕管理
37
41
  */
38
42
  export interface XYConferencePropertiesMessage {
39
- enableContentLive?: 'true' | 'false';
40
- enableContentLiveOnHold?: 'true' | 'false';
43
+ enableContentLive?: boolean;
44
+ enableContentLiveOnHold?: boolean;
41
45
  shareChatContentPermission?: '0' | '1';
42
46
  confRoomOwnerList?: string;
47
+ professionalMC?: boolean;
48
+ manageSubtitle?: boolean;
49
+ }
50
+ export declare enum XYTranscriptionType {
51
+ SUBTITLE = 2
52
+ }
53
+ /**
54
+ * 通话字幕、转写状态变更事件
55
+ *
56
+ * @property { XYTranscriptionType } type - 事件类型
57
+ * @property { { mmsSubtitle: XYCommonState } } body - 事件内容
58
+ */
59
+ export interface XYTranscriptionStatus {
60
+ type: XYTranscriptionType;
61
+ body: {
62
+ mmsSubtitle: XYCommonState;
63
+ };
43
64
  }
@@ -17,6 +17,11 @@ declare class Quality {
17
17
  private config;
18
18
  private currentLogInterval;
19
19
  private currentReportInterval;
20
+ private networkType;
21
+ private localInternalIP;
22
+ private localPort;
23
+ private remoteIP;
24
+ private remotePort;
20
25
  private onMessage;
21
26
  constructor(onMessage: (eventData: any) => void);
22
27
  /**
@@ -91,6 +96,18 @@ declare class Quality {
91
96
  * @returns { number }
92
97
  */
93
98
  private calcAudioLevel;
99
+ /**
100
+ * 更新本地候选信息
101
+ *
102
+ * @param { any } report - 本地候选信息
103
+ */
104
+ private updateLocalCandidate;
105
+ /**
106
+ * 更新远端候选信息
107
+ *
108
+ * @param { any } report - 远端候选信息
109
+ */
110
+ private updateRemoteCandidate;
94
111
  /**
95
112
  * 计算速率
96
113
  *
@@ -98,12 +98,14 @@ declare class VideoManager {
98
98
  * 绑定视频渲染容器,增加事件监听,并通过Video元素播放最新的MediaStream数据
99
99
  *
100
100
  * @param { string } viewId 包裹video组件的元素id,此元素一定要提供宽高信息,内部会基于此宽高信息计算video的旋转信息
101
+ * @param { boolean } isVideoMute - 是否需要播放视频声音
101
102
  */
102
103
  private initVideoSource;
103
104
  /**
104
105
  * 创建Video元素
105
106
  *
106
107
  * @param { HTMLElement } container - 容器节点信息
108
+ * @param { boolean } isVideoMute - 是否需要播放视频声音
107
109
  * @returns { HTMLVideoElement }
108
110
  */
109
111
  private createVideoElement;
@@ -147,15 +149,17 @@ declare class VideoManager {
147
149
  *
148
150
  * @param { string } id - 用户唯一ID,通过layout事件获取
149
151
  * @param { string } wrapEleId - 渲染画面的视图容器ID
152
+ * @param { boolean } isVideoMute - 是否需要播放视频声音,默认是true,代表mute video元素
150
153
  */
151
- setSource(id: string, wrapEleId: string): void;
154
+ setSource(id: string, wrapEleId: string, isVideoMute?: boolean): void;
152
155
  /**
153
156
  * 【副流渲染】设置用户信息和渲染画面的视图信息,创建Video元素用于渲染画面
154
157
  *
155
158
  * @param { string } id - 用户唯一ID,通过layout事件获取
156
159
  * @param { string } viewId - 渲染画面的视图容器ID
160
+ * @param { boolean } isVideoMute - 是否需要播放视频声音
157
161
  */
158
- setSlaveSource(id: string, viewId: string): void;
162
+ setSlaveSource(id: string, viewId: string, isVideoMute?: boolean): void;
159
163
  /**
160
164
  * 销毁当前实例数据
161
165
  */
@@ -31,6 +31,13 @@ declare class RosterManager implements XYBaseModule {
31
31
  * @returns { IRoster | null } - Roster数据
32
32
  */
33
33
  getRosterById(id: string): IRoster | null;
34
+ /**
35
+ * 判断是否是本地Roster
36
+ *
37
+ * @param { string } id - Roster/Layout Id
38
+ * @returns { boolean } - 是否是本地Roster
39
+ */
40
+ isLocal(id: string): boolean;
34
41
  /**
35
42
  * 获取匹配的rosterId
36
43
  *
@@ -143,5 +143,6 @@ declare class ServerManager {
143
143
  * @param { Action } action - Action实例
144
144
  */
145
145
  getCodeByJson(configName: string, data: ServerLinkData | string, oldData: ServerLinkData, action: Action): Promise<void>;
146
+ destroy(): void;
146
147
  }
147
148
  export default ServerManager;
@@ -0,0 +1,5 @@
1
+ import { OperateType } from '../../type/client';
2
+ export interface XYVideoAudioStatus {
3
+ audioStatus?: OperateType;
4
+ videoStatus?: OperateType;
5
+ }
@@ -0,0 +1,46 @@
1
+ import { default as XYRTCClient } from '../client';
2
+ declare class XYReconnectionManager {
3
+ private client;
4
+ private logger;
5
+ private reconnectMaxCount;
6
+ private reconnectInterval;
7
+ private reconnectCount;
8
+ private reconnectTimer;
9
+ private isReinviting;
10
+ constructor(client: XYRTCClient);
11
+ get isInReCall(): boolean | undefined;
12
+ /**
13
+ * 开始重呼
14
+ */
15
+ start(): Promise<void>;
16
+ /**
17
+ * 获取重连间隔时间
18
+ * 2s-最大倒计时数据(默认是5s)之间的随机数
19
+ *
20
+ * @returns 重连间隔
21
+ */
22
+ private getReconnectInterval;
23
+ /**
24
+ * 重新发起呼叫连接
25
+ */
26
+ private reCall;
27
+ /**
28
+ * 呼叫
29
+ */
30
+ private makeCall;
31
+ /**
32
+ * 恢复音频、视频状态
33
+ */
34
+ private restoreVideoAudioStatus;
35
+ /**
36
+ * 重呼成功,重置状态
37
+ */
38
+ private handleReconnectSuccess;
39
+ /**
40
+ * 多次重呼失败,通知用户退出会议
41
+ */
42
+ private handleReconnectFailure;
43
+ resetState(): void;
44
+ private clearTimer;
45
+ }
46
+ export { XYReconnectionManager };