@xylink/xy-rtc-sdk 4.0.8 → 4.0.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/enum/index.d.ts +15 -1
- package/main/auth/index.type.d.ts +28 -2
- package/main/client/index.d.ts +13 -1
- package/package.json +1 -1
- package/type/client.d.ts +23 -1
- package/type/meeting.d.ts +7 -0
- package/xyrtc.js +3375 -3363
package/enum/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare const STREAM_11_CHANNEL_COUNT = 11;
|
|
|
36
36
|
/**
|
|
37
37
|
* peer 20+2路画面通道数量(包含两路content画面)
|
|
38
38
|
*/
|
|
39
|
-
export declare const STREAM_20_CHANNEL_COUNT =
|
|
39
|
+
export declare const STREAM_20_CHANNEL_COUNT = 34;
|
|
40
40
|
/**
|
|
41
41
|
* peer 屏幕外声音通道数量
|
|
42
42
|
*/
|
|
@@ -239,6 +239,16 @@ export declare const FACING_MODE_LIST: readonly [FacingMode.FRONT, FacingMode.BA
|
|
|
239
239
|
* @property upLinkCeilingRate - 上行带宽配置(暂不支持)
|
|
240
240
|
* @property pvrxResolution - 下行最大分辨率配置
|
|
241
241
|
* @property pvtxResolution - 上行最大分辨率配置
|
|
242
|
+
* @property bwMode - 带宽模式配置
|
|
243
|
+
* 高低带宽模式设置路径:manager-开发者-客户端功能管理-自定义终端功能-mediaConfig-bwMode,支持:0/4
|
|
244
|
+
* 最大带宽设置路径:console-会议设置-带宽控制-默认带宽,最大支持20MB设置
|
|
245
|
+
* 最大带宽设置路径2:manager-开发者-客户端功能管理-自定义终端功能-RemoteSDKConfig-downLinkCeilingRate,可以输入自定义带宽,会合并到console平台
|
|
246
|
+
* 需求文档:https://nones.xylink.com/wiki/#/team/AQzvsooq/space/WctinJ2n/page/Aoro2gn1
|
|
247
|
+
* 0-本地带宽表;未配置带宽模式时,终端默认使用0-本地带宽表
|
|
248
|
+
* 1-极限模式----暂时不支持
|
|
249
|
+
* 2-低带宽模式----暂时不支持
|
|
250
|
+
* 3-普通模式----暂时不支持
|
|
251
|
+
* 4-高带宽模式-----20260327支持
|
|
242
252
|
*/
|
|
243
253
|
export declare const ENTERPRISE_CONFIG: {
|
|
244
254
|
downLinkCeilingRate: {
|
|
@@ -257,6 +267,10 @@ export declare const ENTERPRISE_CONFIG: {
|
|
|
257
267
|
clientConfigName: string;
|
|
258
268
|
configName: string;
|
|
259
269
|
};
|
|
270
|
+
bwMode: {
|
|
271
|
+
clientConfigName: string;
|
|
272
|
+
configName: string;
|
|
273
|
+
};
|
|
260
274
|
};
|
|
261
275
|
/**
|
|
262
276
|
* 枚举会控平台
|
|
@@ -60,15 +60,39 @@ export declare enum XYLoginState {
|
|
|
60
60
|
*/
|
|
61
61
|
TokenRefresh = "TokenRefresh"
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* 密码组成
|
|
65
|
+
*
|
|
66
|
+
* @property { boolean } digit - 是否包含数字
|
|
67
|
+
* @property { boolean } lowerCase - 是否包含小写字母
|
|
68
|
+
* @property { boolean } specialChar - 是否包含特殊字符
|
|
69
|
+
* @property { boolean } upperCase - 是否包含大写字母
|
|
70
|
+
*/
|
|
71
|
+
export interface XYPasswordComposition {
|
|
72
|
+
digit: boolean;
|
|
73
|
+
lowerCase: boolean;
|
|
74
|
+
specialChar: boolean;
|
|
75
|
+
upperCase: boolean;
|
|
76
|
+
}
|
|
63
77
|
/**
|
|
64
78
|
* 小鱼账号配置
|
|
65
79
|
*
|
|
66
80
|
* @property { boolean } enhancePassword - 不校验密码安全策略
|
|
67
|
-
* @property {
|
|
81
|
+
* @property { string } passwordLength - 密码长度(格式: 8-16)
|
|
82
|
+
* @property { XYPasswordComposition } passwordComposition - 密码组成
|
|
83
|
+
* @property { number } passwordMaxLength - 密码最大长度
|
|
84
|
+
* @property { number } passwordMinLength - 密码最小长度
|
|
85
|
+
* @property { string } passwordValidationRegex - 密码验证正则表达式
|
|
86
|
+
* @property { string } enhancedPasswordRegex - 增强密码验证正则表达式, 兼容登录密码规则
|
|
68
87
|
*/
|
|
69
88
|
export interface XYAccountConfig {
|
|
70
89
|
enhancePassword: boolean;
|
|
71
|
-
passwordLength:
|
|
90
|
+
passwordLength: string;
|
|
91
|
+
passwordComposition?: XYPasswordComposition;
|
|
92
|
+
passwordMaxLength?: number;
|
|
93
|
+
passwordMinLength?: number;
|
|
94
|
+
passwordValidationRegex?: string;
|
|
95
|
+
enhancedPasswordRegex?: string;
|
|
72
96
|
}
|
|
73
97
|
/**
|
|
74
98
|
* 重置密码参数
|
|
@@ -77,10 +101,12 @@ export interface XYAccountConfig {
|
|
|
77
101
|
* @property { string } password - 旧密码, 如果是验证码登录,此值可不传
|
|
78
102
|
* @property { string } newPassword - 新密码
|
|
79
103
|
* @property { string } verificationCode - 验证码, 如果是账号密码登录,此值可不传
|
|
104
|
+
* @property { boolean } enhancePassword - 是否增强密码
|
|
80
105
|
*/
|
|
81
106
|
export interface XYResetPasswordParams {
|
|
82
107
|
account: string;
|
|
83
108
|
password?: string;
|
|
84
109
|
newPassword: string;
|
|
85
110
|
verificationCode?: string;
|
|
111
|
+
enhancePassword?: boolean;
|
|
86
112
|
}
|
package/main/client/index.d.ts
CHANGED
|
@@ -440,6 +440,10 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
|
|
|
440
440
|
* @property { boolean } config.enableMobileNotAuth - 是否启用移动端无授权入会,默认不启用,设置为false;此配置已经废弃,移动端已支持动态授权功能;
|
|
441
441
|
* @property { boolean } config.enableWatermarkContent - 是否启用获取content水印内容, 默认启用, 设置为true
|
|
442
442
|
* @property { boolean } config.enableHideLocalView - 是否启用隐藏本地画面模式,默认不启用,设置为false
|
|
443
|
+
* @property { boolean } config.enableAudioPCM - 是否启用音频PCM,默认不启用,设置为false
|
|
444
|
+
* @property { boolean } config.enableReCall - 是否支持重新呼叫, 默认启用, 设置为true
|
|
445
|
+
* @property { boolean } config.enableMoreStreams - 是否支持更多画面流,默认不启用,设置为false,后续仅配置moreStreamsMaxCount即可;如配置为true,则自动转为18路画面流
|
|
446
|
+
* @property { XYMoreStreamsMaxCount } config.moreStreamsMaxCount - 配置更多画面流的最大数量,默认是9,支持9/18/32路画面流,如配置为其他枚举/数值,则自动转为9画面
|
|
443
447
|
* @returns { IReturnResult }
|
|
444
448
|
*/
|
|
445
449
|
setFeatureConfig(config: IFeatureConfig): Promise<IReturnResult>;
|
|
@@ -457,6 +461,14 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
|
|
|
457
461
|
* @param { IFeatureConfigKey } key - Feature Config Key
|
|
458
462
|
*/
|
|
459
463
|
private processFeatureConfig;
|
|
464
|
+
/**
|
|
465
|
+
* 合并更多画面流配置
|
|
466
|
+
* 规则:
|
|
467
|
+
* 1、如果配置了enableMoreStreams,则将moreStreamsMaxCount配置为EIGHTEEN 18路画面流
|
|
468
|
+
* 2、如果配置了moreStreamsMaxCount,且符合配置规则,则更新对应moreStreamsMaxCount配置;
|
|
469
|
+
* 3、如果配置了moreStreamsMaxCount,且不符合配置规则,则重置moreStreamsMaxCount配置为NINE;
|
|
470
|
+
*/
|
|
471
|
+
private mergeMoreStreamsConfig;
|
|
460
472
|
/**
|
|
461
473
|
* 设置上下行视频的分辨率和帧率
|
|
462
474
|
*
|
|
@@ -1005,7 +1017,7 @@ export default class XYRTCClient extends XYRTCClientBase implements XYClientIF {
|
|
|
1005
1017
|
* @param { object? } extParams - 可选,控制额外的参数
|
|
1006
1018
|
* @returns { Promise<boolean> } - 是否请求成功
|
|
1007
1019
|
*/
|
|
1008
|
-
requestNewLayout(reqList: any, maxViewCountPerPage: number, pageIndex: number, extReqList?: IReqInfo[], extParams?: {}): Promise<boolean>;
|
|
1020
|
+
requestNewLayout(reqList: any, maxViewCountPerPage: number | undefined, pageIndex: number, extReqList?: IReqInfo[], extParams?: {}): Promise<boolean>;
|
|
1009
1021
|
/**
|
|
1010
1022
|
* 自定义布局-自动轮询请求参会者的视频流
|
|
1011
1023
|
* 使用场景:教育平台调用全部画面数据
|
package/package.json
CHANGED
package/type/client.d.ts
CHANGED
|
@@ -197,6 +197,26 @@ export declare enum FacingMode {
|
|
|
197
197
|
FRONT = "FRONT",
|
|
198
198
|
BACK = "BACK"
|
|
199
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* 更多画面流的最大数量
|
|
202
|
+
*
|
|
203
|
+
* @property { number } NINE - 9路画面流
|
|
204
|
+
* @property { number } EIGHTEEN - 18路画面流
|
|
205
|
+
* @property { number } THIRTY_TWO - 32路画面流
|
|
206
|
+
* @property { number } FORTY_NINE - 49路画面流
|
|
207
|
+
* @property { number } SIXTY_FOUR - 64路画面流
|
|
208
|
+
* @property { number } EIGHTY_ONE - 81路画面流
|
|
209
|
+
* @property { number } ONE_HUNDRED - 100路画面流
|
|
210
|
+
*/
|
|
211
|
+
export declare enum XYMoreStreamsMaxCount {
|
|
212
|
+
NINE = 9,
|
|
213
|
+
EIGHTEEN = 18,
|
|
214
|
+
THIRTY_TWO = 32,
|
|
215
|
+
FORTY_NINE = 49,
|
|
216
|
+
SIXTY_FOUR = 64,
|
|
217
|
+
EIGHTY_ONE = 81,
|
|
218
|
+
ONE_HUNDRED = 100
|
|
219
|
+
}
|
|
200
220
|
/**
|
|
201
221
|
* 摄像头方向
|
|
202
222
|
*
|
|
@@ -1069,7 +1089,8 @@ export interface IReceiveCustomMessage {
|
|
|
1069
1089
|
* @property { boolean } enableHideLocalView - 是否启用隐藏本地画面模式,默认不启用,设置为false
|
|
1070
1090
|
* @property { boolean } enableAudioPCM - 是否启用音频PCM,默认不启用,设置为false
|
|
1071
1091
|
* @property { boolean } enableReCall - 是否支持重新呼叫, 默认启用, 设置为true
|
|
1072
|
-
* @property { boolean } enableMoreStreams -
|
|
1092
|
+
* @property { boolean } enableMoreStreams - 是否支持更多画面流,默认不启用,设置为false,后续仅配置moreStreamsMaxCount即可;如配置为true,则自动转为18路画面流
|
|
1093
|
+
* @property { boolean } moreStreamsMaxCount - 配置更多画面流的最大数量,默认是9,支持9/18/32路画面流,如配置为其他枚举/数值,则自动转为9画面
|
|
1073
1094
|
*/
|
|
1074
1095
|
export interface IFeatureConfig {
|
|
1075
1096
|
enableMeetingShout?: boolean;
|
|
@@ -1088,6 +1109,7 @@ export interface IFeatureConfig {
|
|
|
1088
1109
|
enableAudioPCM?: boolean;
|
|
1089
1110
|
enableReCall?: boolean;
|
|
1090
1111
|
enableMoreStreams?: boolean;
|
|
1112
|
+
moreStreamsMaxCount?: XYMoreStreamsMaxCount;
|
|
1091
1113
|
}
|
|
1092
1114
|
/**
|
|
1093
1115
|
* SDK功能控制开关的key
|
package/type/meeting.d.ts
CHANGED
|
@@ -105,6 +105,12 @@ export declare enum MEETING_DIRECTION {
|
|
|
105
105
|
* @property { number } rxBandwidth - 控制下行带宽,值类似:1920
|
|
106
106
|
* @property { number } pTxBandwidth - web节点People发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
|
|
107
107
|
* @property { number } cTxBandwidth - web节点Content发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
|
|
108
|
+
* @property { number } bwMode - 带宽模式配置
|
|
109
|
+
* 0-本地带宽表;未配置带宽模式时,终端默认使用0-本地带宽表
|
|
110
|
+
* 1-极限模式----暂时不支持
|
|
111
|
+
* 2-低带宽模式----暂时不支持
|
|
112
|
+
* 3-普通模式----暂时不支持
|
|
113
|
+
* 4-高带宽模式-----20260327支持,文档:https://nones.xylink.com/wiki/#/team/AQzvsooq/space/WctinJ2n/page/Aoro2gn1
|
|
108
114
|
*/
|
|
109
115
|
export interface IMediaConfig {
|
|
110
116
|
peopleRecResolution: StreamResolution;
|
|
@@ -116,6 +122,7 @@ export interface IMediaConfig {
|
|
|
116
122
|
rxBandwidth: number;
|
|
117
123
|
pTxBandwidth: number;
|
|
118
124
|
cTxBandwidth: number;
|
|
125
|
+
bwMode?: number;
|
|
119
126
|
}
|
|
120
127
|
/**
|
|
121
128
|
* 媒体能力配置 请求参数
|