@xylink/xy-rtc-sdk 3.8.0-beta.2 → 3.8.0-beta.5
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 +9 -0
- package/lib/enum/device.d.ts +3 -0
- package/lib/enum/index.d.ts +1 -1
- package/lib/main/client.d.ts +61 -43
- package/lib/main/deviceManager.d.ts +3 -3
- package/lib/main/helper.d.ts +1 -1
- package/lib/main/iauth.d.ts +1 -5
- package/lib/main/layoutManager.d.ts +2 -2
- package/lib/main/meeting.d.ts +22 -4
- package/lib/main/stream.d.ts +5 -9
- package/lib/tools/{emmitter.d.ts → emitter.d.ts} +2 -2
- package/lib/tools/utils.d.ts +11 -14
- package/lib/type/base.d.ts +12 -0
- package/lib/type/client.d.ts +146 -15
- package/lib/type/meeting.d.ts +15 -0
- package/lib/type/stream.d.ts +2 -1
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +1 -1
package/lib/type/client.d.ts
CHANGED
|
@@ -267,9 +267,22 @@ export interface ILayoutParams {
|
|
|
267
267
|
contentSenderPid: number;
|
|
268
268
|
localHide: boolean;
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Layout模版定义
|
|
272
|
+
*
|
|
273
|
+
* @property { number[] } position - 位置/尺寸比例
|
|
274
|
+
* @property { IResolutionType } resolution - 分辨率
|
|
275
|
+
* @property { number } resolution.normal - 正常分辨率
|
|
276
|
+
* @property { number } resolution.low - 低性能模式分辨率
|
|
277
|
+
* @property { number } zIndex - 层级
|
|
278
|
+
* @property { boolean } isContent - 是否是共享内容
|
|
279
|
+
*/
|
|
270
280
|
export declare type ITemplateObj = {
|
|
271
281
|
position: number[];
|
|
272
|
-
resolution:
|
|
282
|
+
resolution: {
|
|
283
|
+
normal: IResolutionType;
|
|
284
|
+
low: IResolutionType;
|
|
285
|
+
};
|
|
273
286
|
zIndex?: number;
|
|
274
287
|
isContent?: boolean;
|
|
275
288
|
};
|
|
@@ -389,6 +402,7 @@ export declare type IReqInfo = {
|
|
|
389
402
|
export interface IMeetingInfo {
|
|
390
403
|
meetingId: string;
|
|
391
404
|
callUri: string;
|
|
405
|
+
vcNumber: string;
|
|
392
406
|
}
|
|
393
407
|
/**
|
|
394
408
|
* 调度失败的uri列表项目
|
|
@@ -510,6 +524,8 @@ export interface IConfAuxProperties {
|
|
|
510
524
|
* @property { string } numberType 会议号类型
|
|
511
525
|
* @property { IConfAuxProperties } confAuxProperties 会议配置
|
|
512
526
|
* @property { string } avatar 头像
|
|
527
|
+
* @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
|
|
528
|
+
* @property { string } meetingId 当前会议ID
|
|
513
529
|
*/
|
|
514
530
|
export interface IConferenceInfo {
|
|
515
531
|
callNumber?: string;
|
|
@@ -522,6 +538,7 @@ export interface IConferenceInfo {
|
|
|
522
538
|
confAuxProperties?: IConfAuxProperties;
|
|
523
539
|
avatar?: string;
|
|
524
540
|
inviteInfo?: InviteInfo;
|
|
541
|
+
meetingId?: string;
|
|
525
542
|
}
|
|
526
543
|
/**
|
|
527
544
|
* 会议分享信息
|
|
@@ -747,6 +764,7 @@ export interface ILayoutRoster {
|
|
|
747
764
|
* @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
|
|
748
765
|
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
749
766
|
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
767
|
+
* @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
750
768
|
*/
|
|
751
769
|
export interface IConfInfo {
|
|
752
770
|
participantCount: number;
|
|
@@ -754,6 +772,11 @@ export interface IConfInfo {
|
|
|
754
772
|
chairManUrl: string;
|
|
755
773
|
contentUri: string;
|
|
756
774
|
actSpkUri: string;
|
|
775
|
+
mediaGroupInfo: IMediaGroupInfo[];
|
|
776
|
+
}
|
|
777
|
+
export interface IMediaGroupInfo {
|
|
778
|
+
endpointCount: number;
|
|
779
|
+
mediagroupid: number;
|
|
757
780
|
}
|
|
758
781
|
/**
|
|
759
782
|
* 自动布局,分页数据
|
|
@@ -810,6 +833,7 @@ export interface ILayout {
|
|
|
810
833
|
quality?: 0 | 100 | 200;
|
|
811
834
|
deal?: boolean;
|
|
812
835
|
zIndex?: number;
|
|
836
|
+
avatar?: string;
|
|
813
837
|
}
|
|
814
838
|
/**
|
|
815
839
|
* Local布局对象
|
|
@@ -1148,22 +1172,30 @@ export interface ITranslationContent {
|
|
|
1148
1172
|
}
|
|
1149
1173
|
/**
|
|
1150
1174
|
* SDK功能控制开关,用于内部是否启用某些功能的运行
|
|
1151
|
-
* 默认配置:src/enum/index.ts
|
|
1152
|
-
*
|
|
1153
|
-
* @property { boolean }
|
|
1154
|
-
* @property { boolean }
|
|
1155
|
-
* @property { boolean }
|
|
1156
|
-
* @property { boolean }
|
|
1157
|
-
* @property { boolean }
|
|
1158
|
-
* @property { boolean }
|
|
1175
|
+
* 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
|
|
1176
|
+
*
|
|
1177
|
+
* @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
|
|
1178
|
+
* @property { boolean } enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true;
|
|
1179
|
+
* @property { boolean } enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
|
|
1180
|
+
* @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
|
|
1181
|
+
* @property { boolean } enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
|
|
1182
|
+
* @property { boolean } enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
|
|
1183
|
+
* @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
|
|
1184
|
+
* @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
|
|
1185
|
+
* @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
|
|
1186
|
+
* @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
|
|
1159
1187
|
*/
|
|
1160
1188
|
export interface IFeatureConfig {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1189
|
+
enableMeetingShout?: boolean;
|
|
1190
|
+
enableV2States?: boolean;
|
|
1191
|
+
enableCheckRecordPermission?: boolean;
|
|
1192
|
+
enableBandwidthSetting?: boolean;
|
|
1193
|
+
enableMeetingInvite?: boolean;
|
|
1194
|
+
enableMeetingOwner?: boolean;
|
|
1195
|
+
enableAutoResizeLayout?: boolean;
|
|
1196
|
+
enableLowResolution?: boolean;
|
|
1197
|
+
enableSpeakerInfo?: boolean;
|
|
1198
|
+
enableLayoutAvatar?: boolean;
|
|
1167
1199
|
}
|
|
1168
1200
|
export interface IConfMgmtUrl {
|
|
1169
1201
|
pc: string;
|
|
@@ -1171,4 +1203,103 @@ export interface IConfMgmtUrl {
|
|
|
1171
1203
|
side: string;
|
|
1172
1204
|
mobile?: string;
|
|
1173
1205
|
}
|
|
1206
|
+
/**
|
|
1207
|
+
* 上报会控控制开启/关闭摄像头结果
|
|
1208
|
+
*
|
|
1209
|
+
* @property { boolean } agree - 是否同意开启/关闭摄像头
|
|
1210
|
+
* no.camera.permission:终端未授权App摄像头权限
|
|
1211
|
+
* reject.unmute.video:参会人拒绝开启摄像头
|
|
1212
|
+
* voice.mode:终端在语音模式
|
|
1213
|
+
* driving.mode:终端在驾驶模式
|
|
1214
|
+
* '':同意为空即可
|
|
1215
|
+
* @property { string } reason - 是否同意开启/关闭摄像头
|
|
1216
|
+
* @property { string } requestId - 终端收到的muteVideoQuery/unMuteVideoQuery消息中的requestId
|
|
1217
|
+
*/
|
|
1218
|
+
export interface IVideoControlResult {
|
|
1219
|
+
agree: boolean;
|
|
1220
|
+
reason: string;
|
|
1221
|
+
requestId: string;
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* 信令下发会控开关摄像头消息内容
|
|
1225
|
+
*
|
|
1226
|
+
* @property { string } body - 消息体,JSON字符串需要解析
|
|
1227
|
+
* @property { number } callIndex - 消息索引值
|
|
1228
|
+
* @property { string } callerUri - caller uri
|
|
1229
|
+
* @property { string } type - 消息类型
|
|
1230
|
+
*/
|
|
1231
|
+
export interface IEPMessage {
|
|
1232
|
+
body: string;
|
|
1233
|
+
callIndex: number;
|
|
1234
|
+
callerUri: string;
|
|
1235
|
+
type: string;
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* 会控开启/关闭摄像头消息、Toast提示消息
|
|
1239
|
+
*/
|
|
1240
|
+
export declare type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
|
|
1241
|
+
/**
|
|
1242
|
+
* 会控开关摄像头三个事件类型
|
|
1243
|
+
* unMuteVideoQuery: 会控请求打开摄像头
|
|
1244
|
+
* muteVideoQuery: 会控请求关闭摄像头
|
|
1245
|
+
* toast: 主持会议的客户端收到的成功和失败提醒
|
|
1246
|
+
*/
|
|
1247
|
+
export declare type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
|
|
1248
|
+
/**
|
|
1249
|
+
* 会控开关摄像头事件基础消息体
|
|
1250
|
+
*
|
|
1251
|
+
* @property { string } confUri - 会议号
|
|
1252
|
+
* @property { string } encryption - 加密信息
|
|
1253
|
+
* @property { boolean } force - 是否强制开启摄像头
|
|
1254
|
+
* @property { string } meetingId - 会议ID
|
|
1255
|
+
* @property { string } requestId - 事件ID
|
|
1256
|
+
* @property { string } uri - 事件接收侧用户ID
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
1259
|
+
export interface videoQueryBase {
|
|
1260
|
+
confUri: string;
|
|
1261
|
+
encryption: string;
|
|
1262
|
+
force: boolean;
|
|
1263
|
+
meetingId: string;
|
|
1264
|
+
requestId: string;
|
|
1265
|
+
uri: string;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* 主持端得到远端开启摄像头结果的提示消息体
|
|
1269
|
+
*
|
|
1270
|
+
* @property { string } message - 消息体,需要解析,详细内容如下:
|
|
1271
|
+
* no.camera.permission: 终端未授权App摄像头权限
|
|
1272
|
+
* reject.unmute.video: 参会人拒绝开启摄像头
|
|
1273
|
+
* voice.mode: 终端在语音模式
|
|
1274
|
+
* driving.mode: 终端在驾驶模式
|
|
1275
|
+
* unmute.video.timeout: 超时
|
|
1276
|
+
* @property { string } di - 终端的deviceUri
|
|
1277
|
+
* @property { string } dn - 终端的名称
|
|
1278
|
+
*/
|
|
1279
|
+
export interface unMuteVideoQueryToastValue extends videoQueryBase {
|
|
1280
|
+
message: string;
|
|
1281
|
+
di: string;
|
|
1282
|
+
dn: string;
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* 会控推送开启/关闭摄像头消息体
|
|
1286
|
+
*
|
|
1287
|
+
* @property { string } key - 消息key,值为:'unMuteVideoQuery' | 'muteVideoQuery'
|
|
1288
|
+
* @property { videoQueryBase } value - 消息详细内容
|
|
1289
|
+
*
|
|
1290
|
+
*/
|
|
1291
|
+
export interface controlVideoQuery {
|
|
1292
|
+
key: queryType;
|
|
1293
|
+
value: videoQueryBase;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* 主持会议端收到远端开启摄像头结果的提示消息体
|
|
1297
|
+
*
|
|
1298
|
+
* @property { string } key - 消息key,值为:toast
|
|
1299
|
+
* @property { unMuteVideoQueryToastValue } value - 消息详细内容
|
|
1300
|
+
*/
|
|
1301
|
+
export interface unMuteVideoQueryToast {
|
|
1302
|
+
key: queryType;
|
|
1303
|
+
value: unMuteVideoQueryToastValue;
|
|
1304
|
+
}
|
|
1174
1305
|
export {};
|
package/lib/type/meeting.d.ts
CHANGED
|
@@ -12,6 +12,17 @@ export interface IConfAuxPro {
|
|
|
12
12
|
watermark: string;
|
|
13
13
|
displayConfNo: string;
|
|
14
14
|
inoutReminder: string;
|
|
15
|
+
waitingRoomProp?: IWaitingRoomProps;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 等候室相关信息
|
|
19
|
+
*
|
|
20
|
+
* @property { number } waitingState 等候室状态 1:在等候室; 0: 未在等候室
|
|
21
|
+
* @property { string } reason 原因
|
|
22
|
+
*/
|
|
23
|
+
export interface IWaitingRoomProps {
|
|
24
|
+
waitingState: number;
|
|
25
|
+
reason: string;
|
|
15
26
|
}
|
|
16
27
|
/**
|
|
17
28
|
* Calluriv2接口返回的部分对外数据信息
|
|
@@ -27,6 +38,10 @@ export interface IConfCallInfo {
|
|
|
27
38
|
/**
|
|
28
39
|
* 个人云会议室信息
|
|
29
40
|
* 默认只保存了部分信息
|
|
41
|
+
*
|
|
42
|
+
* @property { string? } meetingControlPassword 会控密码
|
|
43
|
+
* @property { string? } meetingNumber 个人云会议室号码
|
|
44
|
+
* @property { string? } password 入会密码
|
|
30
45
|
*/
|
|
31
46
|
export interface ICloudRoomConfig {
|
|
32
47
|
meetingControlPassword: string;
|
package/lib/type/stream.d.ts
CHANGED
|
@@ -21,8 +21,9 @@ export declare type TCustomStream = {
|
|
|
21
21
|
* @value NORMAL 正常
|
|
22
22
|
* @value DOMSTRING 创建协商通道流
|
|
23
23
|
* @value INVALID 失效
|
|
24
|
+
* @value DISABLED 禁用状态,不允许采集此分辨率视频流
|
|
24
25
|
*/
|
|
25
|
-
export declare type IStreamStatus = 'NORMAL' | 'DOMSTRING' | 'INVALID';
|
|
26
|
+
export declare type IStreamStatus = 'NORMAL' | 'DOMSTRING' | 'INVALID' | 'DISABLED';
|
|
26
27
|
/**
|
|
27
28
|
* 自定义采集流时产生的状态
|
|
28
29
|
*
|