@xylink/xy-rtc-sdk 4.0.6 → 4.0.8

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 (63) hide show
  1. package/README.md +16 -8
  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 +88 -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/index.d.ts +63 -3
  14. package/enum/polling.d.ts +9 -0
  15. package/feature/artboard/index.d.ts +1 -0
  16. package/feature/customMessage/index.d.ts +7 -0
  17. package/feature/electron/index.d.ts +25 -0
  18. package/feature/index.d.ts +4 -0
  19. package/interface/contentTrackInterface.type.d.ts +0 -1
  20. package/interface/event.type.d.ts +13 -0
  21. package/main/auth/index.d.ts +12 -1
  22. package/main/auth/index.type.d.ts +24 -0
  23. package/main/client/index.d.ts +44 -5
  24. package/main/layout/index.d.ts +12 -4
  25. package/main/layout/polling.d.ts +199 -19
  26. package/main/layout/state.d.ts +46 -5
  27. package/main/media/index.d.ts +4 -0
  28. package/main/media/index.type.d.ts +11 -1
  29. package/main/meeting/control.d.ts +19 -2
  30. package/main/meeting/index.d.ts +26 -4
  31. package/main/meeting/index.type.d.ts +25 -4
  32. package/main/peer/index.d.ts +2 -1
  33. package/main/peer/index.type.d.ts +36 -0
  34. package/main/quality/index.d.ts +36 -0
  35. package/main/quality/index.type.d.ts +27 -0
  36. package/main/render/videoManager.d.ts +6 -2
  37. package/main/roster/index.d.ts +7 -0
  38. package/main/server/index.d.ts +1 -0
  39. package/main/signal/index.type.d.ts +5 -0
  40. package/main/signal/reconnection.d.ts +46 -0
  41. package/main/socket/index.d.ts +2 -2
  42. package/main/track/baseTrack.d.ts +7 -4
  43. package/main/track/contentCapture.d.ts +59 -0
  44. package/main/track/contentTrack.d.ts +50 -38
  45. package/main/track/helper.d.ts +2 -11
  46. package/package.json +4 -5
  47. package/tools/aes.d.ts +33 -0
  48. package/tools/log/db.d.ts +1 -1
  49. package/tools/socket/socketManager.d.ts +1 -0
  50. package/tools/utils.d.ts +8 -0
  51. package/type/ability.d.ts +3 -1
  52. package/type/action.d.ts +2 -0
  53. package/type/base.d.ts +13 -0
  54. package/type/client.d.ts +54 -19
  55. package/type/index.d.ts +3 -0
  56. package/type/logger.d.ts +13 -1
  57. package/type/meeting.d.ts +7 -13
  58. package/type/polling.d.ts +57 -13
  59. package/type/quality.d.ts +2 -0
  60. package/type/socket.d.ts +2 -0
  61. package/type/stream.d.ts +39 -9
  62. package/type/track.d.ts +95 -6
  63. package/xyrtc.js +19135 -15732
package/README.md CHANGED
@@ -2,15 +2,21 @@
2
2
 
3
3
  ## 介绍
4
4
 
5
- XYLink Web SDK 是小鱼易连音视频通讯解决方案的 Web 端 SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XYLink Web SDK 提供的方法快速实现多人音视频通话服务。
5
+ XYLink Web SDK 是小鱼易连音视频通讯解决方案的 Web 端 SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XYLink Web SDK 提供的方法快速实现高质量、高品质、高性能的多人音视频通话服务。
6
+
7
+ ## 在线体验
8
+
9
+ - [小鱼易连 Web 会议](https://meet.xylink.com)
10
+
11
+ ## 开发文档
12
+
13
+ - [产品介绍](https://openapi.xylink.com/common/meeting/doc/description?platform=web)
14
+ - [视频通话](https://openapi.xylink.com/common/meeting/doc/video_call?platform=web)
15
+ - [API 参考](https://openapi.xylink.com/common/meeting/api/description?platform=web)
6
16
 
7
17
  ## 安装
8
18
 
9
19
  ```bash
10
- # 通过 Yarn 安装
11
- $ yarn add @xylink/xy-rtc-sdk -S
12
-
13
- # 通过 Npm 安装
14
20
  $ npm install @xylink/xy-rtc-sdk -S
15
21
  ```
16
22
 
@@ -31,7 +37,7 @@ XYClient.on('call-status', () => {});
31
37
  // 其他事件...
32
38
 
33
39
  // 登录
34
- await XYClient.loginExternalAccount({});
40
+ await XYClient.loginExternalAccount({...});
35
41
 
36
42
  // 呼叫会议
37
43
  await XYClient.makeCall({ confNumber: '', displayName: '' });
@@ -45,7 +51,7 @@ await videoAudioTrack.capture();
45
51
  XYClient.publish(videoAudioTrack);
46
52
  ```
47
53
 
48
- 详细集成流程参考[详细 API 文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
54
+ 详细集成流程参考[视频通话](https://openapi.xylink.com/common/meeting/doc/video_call?platform=web)文档;
49
55
 
50
56
  ## 开源示例项目
51
57
 
@@ -54,7 +60,9 @@ XYClient.publish(videoAudioTrack);
54
60
  - Vue 版本:https://github.com/xylink-com/xylink-rtc-vue-demo
55
61
  - React 版本:https://github.com/xylink-com/xylink-rtc-demo
56
62
 
57
- 如果你是第一次集成 XY RTC SDK 产品,你可以使用我们基于 SDK 实现的产品进行体验:[小鱼 Web 会议](https://meet.xylink.com)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为一种参考方式。
63
+ 如果你是第一次集成小鱼易连 RTC SDK 产品,你可以使用我们基于 Web SDK 实现的产品进行体验:[小鱼易连 Web 会议](https://meet.xylink.com)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为一种参考方式。
64
+
65
+ 同时我们也提供基于小鱼易连 Web SDK 的 [MeetingKit UI](https://openapi.xylink.com/common/meetingkit/doc/description?platform=web)库,一套基于视频通话场景开发的产品,它提供与小鱼 Web 会议及客户端相同的 UI 组件,仅需 5 个步骤的集成代码开发,即可构建 Web 视频通话应用,帮助开发者节省 95% 的开发时间。
58
66
 
59
67
  ## 版本更新内容
60
68
 
@@ -35,6 +35,16 @@ declare class AbilityAPIManager {
35
35
  url: string;
36
36
  method: import('axios').Method;
37
37
  };
38
+ ck_nsh: {
39
+ useParams: ({ securityKey }: any) => {
40
+ securityKey: any;
41
+ };
42
+ useData: (data: any) => any;
43
+ useResponse: (data: unknown) => unknown;
44
+ isEncrypt: boolean;
45
+ url: string;
46
+ method: import('axios').Method;
47
+ };
38
48
  default: {
39
49
  useParams: ({ securityKey }: any) => {
40
50
  securityKey: any;
@@ -92,6 +102,13 @@ declare class AbilityAPIManager {
92
102
  url: string;
93
103
  method: import('axios').Method;
94
104
  };
105
+ ck_nsh: {
106
+ useParams: () => void;
107
+ useResponse: (data: unknown) => unknown;
108
+ isEncrypt: boolean;
109
+ url: string;
110
+ method: import('axios').Method;
111
+ };
95
112
  default: {
96
113
  useParams: () => void;
97
114
  useResponse: (data: unknown) => unknown;
@@ -113,6 +130,17 @@ declare class AbilityAPIManager {
113
130
  url: string;
114
131
  method: import('axios').Method;
115
132
  };
133
+ ck_nsh: {
134
+ useParams: ({ securityKey, callUrl, dkci }: any) => {
135
+ securityKey: any;
136
+ callUrl: any;
137
+ dkci: any;
138
+ };
139
+ useResponse: (data: unknown) => unknown;
140
+ isEncrypt: boolean;
141
+ url: string;
142
+ method: import('axios').Method;
143
+ };
116
144
  default: {
117
145
  useParams: ({ securityKey, callUrl }: any) => {
118
146
  securityKey: any;
@@ -140,6 +168,60 @@ declare class AbilityAPIManager {
140
168
  method: import('axios').Method;
141
169
  };
142
170
  };
171
+ /**
172
+ * 信令多活:获取信令服务信息
173
+ */
174
+ static allocation: {
175
+ ck_nsh: {
176
+ useParams: () => void;
177
+ useResponse: (data: unknown) => unknown;
178
+ isEncrypt: boolean;
179
+ url: string;
180
+ method: import('axios').Method;
181
+ };
182
+ default: {
183
+ useParams: () => void;
184
+ useResponse: (data: unknown) => unknown;
185
+ url: string;
186
+ method: import('axios').Method;
187
+ };
188
+ };
189
+ /**
190
+ * 根据token获取用户信息
191
+ */
192
+ static userInfoByToken: {
193
+ ck_nsh: {
194
+ useParams: (token: string) => void;
195
+ useResponse: (data: unknown) => unknown;
196
+ isEncrypt: boolean;
197
+ url: string;
198
+ method: import('axios').Method;
199
+ };
200
+ default: {
201
+ useParams: (token: string) => void;
202
+ useResponse: (data: unknown) => unknown;
203
+ url: string;
204
+ method: import('axios').Method;
205
+ };
206
+ };
207
+ /**
208
+ * 手机验证码登录
209
+ */
210
+ static loginXYLinkByVerifyCode: {
211
+ ck_nsh: {
212
+ useParams: () => void;
213
+ useResponse: (data: unknown) => unknown;
214
+ isEncrypt: boolean;
215
+ url: string;
216
+ method: import('axios').Method;
217
+ };
218
+ default: {
219
+ useParams: () => void;
220
+ useResponse: (data: unknown) => unknown;
221
+ url: string;
222
+ method: import('axios').Method;
223
+ };
224
+ };
143
225
  /**
144
226
  * 获取 Ability URL 信息
145
227
  *
package/action/api.d.ts CHANGED
@@ -19,13 +19,17 @@ declare class XYApi {
19
19
  */
20
20
  static loginWithUnified: APIUrlInfo;
21
21
  /**
22
- * 单点登录(农商行)
22
+ * 【农商行】单点登录
23
23
  */
24
24
  static loginThirdAuthToken: APIUrlInfo;
25
25
  /**
26
26
  * 手机验证码登录
27
27
  */
28
28
  static loginXYLinkByVerifyCode: APIUrlInfo;
29
+ /**
30
+ * 【农商行】手机验证码登录
31
+ */
32
+ static loginXYLinkByVerifyCodeNsh: APIUrlInfo;
29
33
  /**
30
34
  * 获取图片验证码
31
35
  */
@@ -58,6 +62,10 @@ declare class XYApi {
58
62
  * 根据Token获取用户信息
59
63
  */
60
64
  static userInfoByToken: APIUrlInfo;
65
+ /**
66
+ * 【农商行】根据Token获取用户信息
67
+ */
68
+ static userInfoByTokenNsh: APIUrlInfo;
61
69
  /**
62
70
  * 获取云会议室信息
63
71
  *
@@ -74,6 +82,10 @@ declare class XYApi {
74
82
  * 3.10_20240214 更换成新的接口; 原接口:/api/rest/uss/v4/en/cloudmeeting/validation
75
83
  */
76
84
  static verifyPasswordSec: APIUrlInfo;
85
+ /**
86
+ * 【农商行】校验会议室密码
87
+ */
88
+ static verifyPasswordNsh: APIUrlInfo;
77
89
  /**
78
90
  * 校验会议室密码(uss旧接口)
79
91
  */
@@ -110,6 +122,10 @@ declare class XYApi {
110
122
  * 信令多活:获取信令服务信息
111
123
  */
112
124
  static allocation: APIUrlInfo;
125
+ /**
126
+ * 【农商行】信令多活:获取信令服务信息
127
+ */
128
+ static allocationNsh: APIUrlInfo;
113
129
  /**
114
130
  * 获取会议室水印
115
131
  *
@@ -185,12 +201,20 @@ declare class XYApi {
185
201
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
186
202
  */
187
203
  static cloudMeetingRooms: APIUrlInfo;
204
+ /**
205
+ * 【农商行】获取个人云会议室信息,包含入会密码和个人云会议室号
206
+ */
207
+ static cloudMeetingRoomsNsh: APIUrlInfo;
188
208
  /**
189
209
  * 获取参会者头像
190
210
  *
191
211
  * 3.10_20240214 更换接口; 原接口:/api/rest/v4/en/incomingcallUrlInfo
192
212
  */
193
213
  static inComingCallUrlInfoSec: APIUrlInfo;
214
+ /**
215
+ * 【农商行】获取参会者头像
216
+ */
217
+ static inComingCallUrlInfoNsh: APIUrlInfo;
194
218
  /**
195
219
  * 获取参会者头像(旧接口)
196
220
  */
@@ -254,13 +278,26 @@ declare class XYApi {
254
278
  static createVep: APIUrlInfo;
255
279
  /**
256
280
  * 开启字幕
257
- * https://yapi.xylink.com/project/1843/interface/api/214819
258
281
  */
259
282
  static startSubtitles: APIUrlInfo;
260
283
  /**
261
284
  * 停止字幕
262
- * https://yapi.xylink.com/project/1843/interface/api/214828
263
285
  */
264
286
  static stopSubtitles: APIUrlInfo;
287
+ /**
288
+ * 获取云会议室配置 - 暂时农商行使用
289
+ * 接口提供:charge(黄森、亚鹏)
290
+ * 接口扩展:可以指定查询配置参数:configNames=allowTempUserCall
291
+ * 接口内容:allowTempUserCall、tempUserCallApproved
292
+ */
293
+ static getCloudMeetingRoomsConfig: APIUrlInfo;
294
+ /**
295
+ * 获取用户企业配置
296
+ */
297
+ static getAccountConfig: APIUrlInfo;
298
+ /**
299
+ * 重置密码
300
+ */
301
+ static resetPassword: APIUrlInfo;
265
302
  }
266
303
  export default XYApi;
package/action/auth.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ILoginExtAccount, ILoginWidthAuthCode, ISdkUserInfo, LoginParams, LoginThirdAuthTokenParams, LoginType, LoginVerifyCodeParams, RegisterAndLoginParams } from '../type/auth';
2
2
  import { default as Action } from '.';
3
3
  import { default as BaseAction } from './base';
4
- import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
4
+ import { CheckCaptchaImageParams, LoginOtherParams, XYResetPasswordParams } from '../main/auth/index.type';
5
5
  declare class AuthAction extends BaseAction {
6
6
  constructor(action: Action);
7
7
  /**
@@ -11,6 +11,13 @@ declare class AuthAction extends BaseAction {
11
11
  * @returns { Object } - 用户信息
12
12
  */
13
13
  getUserInfo(token: string): Promise<any>;
14
+ /**
15
+ * [农商行]根据Token获取用户信息(加密)
16
+ *
17
+ * @param { any } userInfo - 用户信息
18
+ * @returns { Object } - 用户信息
19
+ */
20
+ private getUserInfoEncrypt;
14
21
  /**
15
22
  * 获取匿名账号
16
23
  *
@@ -57,6 +64,13 @@ declare class AuthAction extends BaseAction {
57
64
  * @returns
58
65
  */
59
66
  loginXYLinkByVerifyCode(params: LoginVerifyCodeParams): Promise<any>;
67
+ /**
68
+ * [农商行]手机验证码登录(加密)
69
+ *
70
+ * @param { LoginVerifyCodeParams } params - 登录参数
71
+ * @returns
72
+ */
73
+ private loginXYLinkByVerifyCodeEncrypt;
60
74
  /**
61
75
  * 新用户注册并登录
62
76
  *
@@ -129,5 +143,22 @@ declare class AuthAction extends BaseAction {
129
143
  * @returns
130
144
  */
131
145
  refreshToken(refresh_token?: string): Promise<any>;
146
+ /**
147
+ * 获取用户企业配置
148
+ *
149
+ * @param { string } account - 用户账号
150
+ * @returns
151
+ */
152
+ getAccountConfig(account: string): Promise<any>;
153
+ private handleResult;
154
+ /**
155
+ * 重置密码
156
+ *
157
+ * @param { string } account - 用户账号
158
+ * @param { string } password - 旧密码
159
+ * @param { string } newPassword - 新密码
160
+ * @returns { Promise<IReturnResult> } - 修改密码结果
161
+ */
162
+ resetPassword(params: XYResetPasswordParams): Promise<any>;
132
163
  }
133
164
  export default AuthAction;
package/action/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { default as EnterpriseAction } from './enterprise';
8
8
  import { default as MeetingControlAction } from './control';
9
9
  import { default as LogAction } from './log';
10
10
  import { XYEmitter } from '@xylink/xy-toolkit';
11
+ import { XyEncryption } from '@xylink/xy-encryption';
11
12
  export interface ICommonParams {
12
13
  securityKey: string;
13
14
  callUri?: string;
@@ -27,6 +28,8 @@ declare class Action extends XYEmitter<XYActionKey> {
27
28
  private enterpriseAction;
28
29
  private meetingControlAction;
29
30
  private logAction;
31
+ xyEncryption: XyEncryption;
32
+ private encryptedKey;
30
33
  constructor(logger?: Logger);
31
34
  handleRefreshToken(data: any): void;
32
35
  getClientInfo(): {
@@ -58,6 +61,7 @@ declare class Action extends XYEmitter<XYActionKey> {
58
61
  baseUrl?: string;
59
62
  logUrl?: string;
60
63
  }): void;
64
+ generateKey(): Promise<string>;
61
65
  /**
62
66
  * 设置API网关校验信息
63
67
  *
@@ -2,7 +2,7 @@ import { Method } from 'axios';
2
2
  /**
3
3
  * 支持能力集的接口key
4
4
  */
5
- export type AbilityAPIKey = 'callUri' | 'verifyPassword' | 'watermarkContent' | 'meetingInviteInfo' | 'cloudMeetingRooms' | 'inComingCallUrlInfo' | 'recordStorage';
5
+ export type AbilityAPIKey = 'callUri' | 'verifyPassword' | 'watermarkContent' | 'meetingInviteInfo' | 'cloudMeetingRooms' | 'inComingCallUrlInfo' | 'recordStorage' | 'allocation' | 'userInfoByToken' | 'loginXYLinkByVerifyCode';
6
6
  /**
7
7
  * 接口信息
8
8
  *
@@ -21,9 +21,11 @@ export interface APIUrlInfo {
21
21
  * @param { (params: any) => any } useParams - 参数处理函数,用于处理请求参数
22
22
  * @param { (data: unknown) => any } useData - 数据处理函数,用于处理请求数据
23
23
  * @param { (data: unknown) => any } useResponse - 响应处理函数,用于处理响应数据
24
+ * @param { boolean } isEncrypt - 是否加密
24
25
  */
25
26
  export interface AbilityUrlInfo extends APIUrlInfo {
26
27
  useParams: (params: any) => any;
27
28
  useData: (data: unknown) => any;
28
29
  useResponse: (data: unknown) => any;
30
+ isEncrypt?: boolean;
29
31
  }
@@ -31,6 +31,14 @@ declare class MeetingAction extends BaseAction {
31
31
  * @returns
32
32
  */
33
33
  verifyPassword(confNumber: string, password: string): Promise<any>;
34
+ /**
35
+ * [农商行]加密校验会议室密码
36
+ *
37
+ * @param { string } confNumber 会议号
38
+ * @param { string } password 密码
39
+ * @returns
40
+ */
41
+ private verifyPasswordEncrypt;
34
42
  /**
35
43
  * 监课模式不需要入会密码
36
44
  *
@@ -87,6 +95,13 @@ declare class MeetingAction extends BaseAction {
87
95
  getInComingCallUrlInfo(callUrl: string): Promise<{
88
96
  avatar: string;
89
97
  }>;
98
+ /**
99
+ * [农商行]获取参会者头像(加密)
100
+ *
101
+ * @param { string } callUrl - 待获取头像的参会者callUri
102
+ * @returns { Object } - 参会者头像信息
103
+ */
104
+ private getInComingCallUrlInfoEncrypt;
90
105
  /**
91
106
  * 检查会议室录制权限
92
107
  *
@@ -116,5 +131,10 @@ declare class MeetingAction extends BaseAction {
116
131
  * @returns
117
132
  */
118
133
  stopSubtitles(): Promise<any>;
134
+ /**
135
+ * 获取云会议室配置
136
+ * @returns
137
+ */
138
+ getCloudMeetingRoomsConfig(confNumber: string): Promise<any>;
119
139
  }
120
140
  export default MeetingAction;
package/enum/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IClientConfig } from '../type/index';
1
+ import { IClientConfig, XYOverflowClearType } from '../type/index';
2
2
  export declare const DEFAULT_LOG_STYLE = "color: #3876ff;";
3
3
  export declare const DEFAULT_LINE = "*********************************************************";
4
4
  /**
@@ -12,4 +12,6 @@ export declare const XY_DEFAULT_LOGGER_CONFIG: {
12
12
  tableName: string;
13
13
  dbVersion: number;
14
14
  tableCount: number;
15
+ enableClearTable: boolean;
16
+ overflowClearType: XYOverflowClearType;
15
17
  };
@@ -1,4 +1,86 @@
1
- import { XYContentConfig, XYPeopleConfig, StreamResolution, ConstraintMode, StreamFrameRate } from '../type/index';
1
+ import { XYContentConfig, XYPeopleConfig, StreamResolution, ConstraintMode, StreamFrameRate, IRecallConfig } from '../type/index';
2
+ /**
3
+ * 获取Electron采集约束配置
4
+ *
5
+ * @param width - 宽度
6
+ * @param height - 高度
7
+ * @param frameRate - 帧率
8
+ * @returns { TConstraintsConfig } - 约束配置
9
+ */
10
+ export declare const getElectronConstraints: (width: number, height: number, frameRate: StreamFrameRate) => {
11
+ video: {
12
+ mandatory: {
13
+ chromeMediaSource: string;
14
+ chromeMediaSourceId: string;
15
+ maxWidth: number;
16
+ maxHeight: number;
17
+ maxFrameRate: StreamFrameRate;
18
+ };
19
+ };
20
+ audio: {
21
+ mandatory: {
22
+ chromeMediaSource: string;
23
+ chromeMediaSourceId: string;
24
+ };
25
+ optional: ({
26
+ noiseSuppression: boolean;
27
+ autoGainControl?: undefined;
28
+ googAutoGainControl?: undefined;
29
+ googNoiseSuppression?: undefined;
30
+ googHighpassFilter?: undefined;
31
+ googTypingNoiseDetection?: undefined;
32
+ googAudioMirroring?: undefined;
33
+ } | {
34
+ autoGainControl: boolean;
35
+ noiseSuppression?: undefined;
36
+ googAutoGainControl?: undefined;
37
+ googNoiseSuppression?: undefined;
38
+ googHighpassFilter?: undefined;
39
+ googTypingNoiseDetection?: undefined;
40
+ googAudioMirroring?: undefined;
41
+ } | {
42
+ googAutoGainControl: boolean;
43
+ noiseSuppression?: undefined;
44
+ autoGainControl?: undefined;
45
+ googNoiseSuppression?: undefined;
46
+ googHighpassFilter?: undefined;
47
+ googTypingNoiseDetection?: undefined;
48
+ googAudioMirroring?: undefined;
49
+ } | {
50
+ googNoiseSuppression: boolean;
51
+ noiseSuppression?: undefined;
52
+ autoGainControl?: undefined;
53
+ googAutoGainControl?: undefined;
54
+ googHighpassFilter?: undefined;
55
+ googTypingNoiseDetection?: undefined;
56
+ googAudioMirroring?: undefined;
57
+ } | {
58
+ googHighpassFilter: boolean;
59
+ noiseSuppression?: undefined;
60
+ autoGainControl?: undefined;
61
+ googAutoGainControl?: undefined;
62
+ googNoiseSuppression?: undefined;
63
+ googTypingNoiseDetection?: undefined;
64
+ googAudioMirroring?: undefined;
65
+ } | {
66
+ googTypingNoiseDetection: boolean;
67
+ noiseSuppression?: undefined;
68
+ autoGainControl?: undefined;
69
+ googAutoGainControl?: undefined;
70
+ googNoiseSuppression?: undefined;
71
+ googHighpassFilter?: undefined;
72
+ googAudioMirroring?: undefined;
73
+ } | {
74
+ googAudioMirroring: boolean;
75
+ noiseSuppression?: undefined;
76
+ autoGainControl?: undefined;
77
+ googAutoGainControl?: undefined;
78
+ googNoiseSuppression?: undefined;
79
+ googHighpassFilter?: undefined;
80
+ googTypingNoiseDetection?: undefined;
81
+ })[];
82
+ };
83
+ };
2
84
  /**
3
85
  * people基础约束配置
4
86
  */
@@ -21,6 +103,7 @@ export declare const BASE_PEOPLE_AUDIO_CONSTRAINTS: {
21
103
  *
22
104
  * COMMON: 普通模式
23
105
  * ADVANCED: 高级模式, 帧率、宽、高 可进行最大、最小、期望设置
106
+ * ELECTRON_COMMON: Electron桌面共享视频流采集约束配置方案
24
107
  *
25
108
  * @param { StreamResolution } resolution - 分辨率
26
109
  * @param { StreamFrameRate } frameRate - 帧率
@@ -43,3 +126,7 @@ export declare const RESOLUTION_MAP: Record<string, number>;
43
126
  * 枚举分辨率对应的最小带宽值
44
127
  */
45
128
  export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
129
+ /**
130
+ * 重呼配置参数
131
+ */
132
+ export declare const DEFAULT_RECALL_CONFIG: Required<IRecallConfig>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 客户端定制化
3
+ *
4
+ * @param { string } NSH - 农商行定制化
5
+ * @param { string } XYLINK - 小鱼Web会议
6
+ */
7
+ export declare enum XYCustomizedKey {
8
+ NSH = "shrcb",
9
+ XYLINK = "xylink"
10
+ }
package/enum/doc.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 解决方案-文档链接
3
+ *
4
+ * Created at : 2025-07-11 11:40:42
5
+ * Last modified : 2025-07-11 11:44:24
6
+ */
7
+ /**
8
+ * 解决方案-文档链接
9
+ */
10
+ export declare const DOC_URL: {
11
+ SHARE_NOT_DEFINED_METHOD: string;
12
+ SHARE_FUNCTION_GUIDE: string;
13
+ };
@@ -4,3 +4,6 @@ export declare const SERVER_ERROR_CODE_MAP: {
4
4
  export declare const UPDATE_NAME_ERROR_CODE: {
5
5
  [key: number]: string;
6
6
  };
7
+ export declare const UPDATE_PASSWORD_ERROR_CODE: {
8
+ [key: number]: string;
9
+ };
package/enum/index.d.ts CHANGED
@@ -1,19 +1,79 @@
1
- import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, StreamResolution, TemplateMode, ContentTemplateMode, LayoutConfig, IMediaConfig, IMakeCall, ContentTrackConfig, PeopleTrackConfig, SwitchDeviceConfig, DEVICE_KIND } from '../type/index';
1
+ import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, StreamResolution, TemplateMode, ContentTemplateMode, LayoutConfig, IMediaConfig, IMakeCall, ContentTrackConfig, PeopleTrackConfig, SwitchDeviceConfig, DEVICE_KIND, CustomizedMode } from '../type/index';
2
2
  export * from './constraints';
3
3
  export * from './analyser';
4
+ /**
5
+ * 日志最大缓存条数
6
+ */
4
7
  export declare const LOG_CACHE_COUNT = 10;
8
+ /**
9
+ * 日志表的数量
10
+ */
5
11
  export declare const DB_TABLE_COUNT = 10;
12
+ /**
13
+ * 信令服务名称
14
+ */
6
15
  export declare const DETECT_LOCATOR_SERVER_NAME = "WebrtcSigGW";
16
+ /**
17
+ * 视频Codec协议
18
+ */
7
19
  export declare const MIME_TYPE = "video/H264";
20
+ /**
21
+ * 音频Codec协议
22
+ */
8
23
  export declare const MIME_AUDIO_TYPE = "audio/opus";
24
+ /**
25
+ * WebRTC 设备类型
26
+ */
9
27
  export declare const DEVICE_TYPE = 17;
28
+ /**
29
+ * 自定义roster中自己的pid数据
30
+ */
10
31
  export declare const SELF_MOCK_PID = 9999999999;
11
- export declare const STREAM_CHANNEL_COUNT = 11;
32
+ /**
33
+ * peer 9+2路画面通道数量(包含两路content画面)
34
+ */
35
+ export declare const STREAM_11_CHANNEL_COUNT = 11;
36
+ /**
37
+ * peer 20+2路画面通道数量(包含两路content画面)
38
+ */
39
+ export declare const STREAM_20_CHANNEL_COUNT = 22;
40
+ /**
41
+ * peer 屏幕外声音通道数量
42
+ */
12
43
  export declare const STREAM_OUTSIDE_CHANNEL_COUNT = 3;
44
+ /**
45
+ * 最多翻页Layout数量
46
+ */
13
47
  export declare const MAX_PARTICIPANT_COUNT = 112;
48
+ /**
49
+ * 用户自定义消息,最大Length长度
50
+ * 大小为1030kb,转化计算:1030 * 1000 / 0.75
51
+ * 大小为1.3MB,转化计算:1385 * 1000 / 0.75
52
+ * export const MAX_CUSTOM_MESSAGE_LEN = 1373333;
53
+ */
14
54
  export declare const MAX_CUSTOM_MESSAGE_LEN = 1846666;
55
+ /**
56
+ * 用户自定义消息,最大Length长度,10KB大小
57
+ */
15
58
  export declare const MAX_CUSTOM_MESSAGE_LOG_LEN = 13333;
59
+ /**
60
+ * 采集流错误码
61
+ *
62
+ * XYSDK:950401 摄像头或者麦克风设备缺失
63
+ * XYSDK:950402 摄像头或麦克风设备无法访问
64
+ * XYSDK:950403 约束设置无法被满足
65
+ * XYSDK:950404 麦克风或摄像头使用权限被拒绝
66
+ * XYSDK:950405 采集流约束设置为空
67
+ * XYSDK:950406 创建媒体流失败
68
+ */
16
69
  export declare const STREAM_ERROR_CODE_MAP: string[];
70
+ /**
71
+ * 采集流重创建错误码
72
+ *
73
+ * XYSDK:950403 约束设置无法被满足
74
+ * XYSDK:950405 采集流约束设置为空
75
+ * XYSDK:950406 创建媒体流失败
76
+ */
17
77
  export declare const STREAM_RECREATE_CODE_MAP: string[];
18
78
  /**
19
79
  * 失效的StreamStatus列表
@@ -215,7 +275,7 @@ export declare const DEFAULT_LAYOUT_CONFIG: Required<LayoutConfig>;
215
275
  /**
216
276
  * Web支持的轮询画面
217
277
  */
218
- export declare const MULTI_IMAGE: string[];
278
+ export declare const MULTI_IMAGE: CustomizedMode[];
219
279
  /**
220
280
  * 高分辨率配置
221
281
  */
package/enum/polling.d.ts CHANGED
@@ -1,2 +1,11 @@
1
1
  import { ILayout } from '../type/index';
2
+ import { CustomizedMode } from '../type/polling';
2
3
  export declare const DEFAULT_POLLING_LAYOUT: ILayout;
4
+ /**
5
+ * 非对称布局模型列表
6
+ */
7
+ export declare const AsymmetricLayouts: CustomizedMode[];
8
+ /**
9
+ * 对称布局模型列表
10
+ */
11
+ export declare const SymmetricLayouts: CustomizedMode[];
@@ -21,6 +21,7 @@ export declare class XYArtboard implements XYBaseModule {
21
21
  private socketUrl;
22
22
  private whiteBoardInfo;
23
23
  private pageId;
24
+ private isGetPages;
24
25
  constructor(client: XYRTCClient);
25
26
  /**
26
27
  * 开启白板分享
@@ -11,6 +11,13 @@ export declare class XYCustomMessage implements XYBaseModule {
11
11
  * @param { object } data - 媒体下发的用户自定义消息数据
12
12
  */
13
13
  handleReceiveCustomMessage(data: any): void;
14
+ /**
15
+ * 处理AI服务消息
16
+ *
17
+ * @description 处理TTS和数字人两种AI服务消息,TTS消息需要对aiResult字段进行Base64解码
18
+ * @param { XYAIServiceMessage } parseData - AI服务消息数据
19
+ */
20
+ private handleAIResponseMessage;
14
21
  /**
15
22
  * 发送自定义消息
16
23
  *