@xylink/xy-rtc-sdk 3.9.1-beta.6 → 3.10.0-beta.4
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 +103 -20
- package/lib/enum/client.d.ts +1 -1
- package/lib/enum/{contraints.d.ts → constraints.d.ts} +6 -0
- package/lib/enum/device.d.ts +34 -0
- package/lib/enum/errorCode.d.ts +7 -1
- package/lib/enum/i18n.d.ts +6 -0
- package/lib/enum/index.d.ts +70 -12
- package/lib/enum/meeting.d.ts +4 -0
- package/lib/feature/index.d.ts +1 -0
- package/lib/feature/speaker.d.ts +61 -0
- package/lib/index.d.ts +13 -10
- package/lib/main/ability/const.d.ts +2 -0
- package/lib/main/ability/index.d.ts +31 -0
- package/lib/main/{iauth.d.ts → auth.d.ts} +8 -8
- package/lib/main/client.d.ts +203 -97
- package/lib/main/clientImplements.d.ts +99 -0
- package/lib/main/deviceManager.d.ts +150 -93
- package/lib/main/helper.d.ts +62 -9
- package/lib/main/layout/index.d.ts +377 -0
- package/lib/main/layout/template.d.ts +64 -0
- package/lib/main/meeting.d.ts +32 -26
- package/lib/main/peer.d.ts +3 -1
- package/lib/main/stream.d.ts +47 -21
- package/lib/main/videoManager.d.ts +95 -12
- package/lib/tools/{audioLevel.d.ts → analyser.d.ts} +11 -4
- package/lib/tools/browser.d.ts +60 -49
- package/lib/tools/httpClient.d.ts +27 -6
- package/lib/tools/index.d.ts +12 -5
- package/lib/tools/{logger.d.ts → log/logger.d.ts} +18 -7
- package/lib/tools/log/loggerManager.d.ts +69 -0
- package/lib/tools/promiseQueue.d.ts +45 -0
- package/lib/tools/queue.d.ts +12 -15
- package/lib/tools/resize.d.ts +62 -0
- package/lib/tools/snapshot.d.ts +31 -0
- package/lib/tools/socket.d.ts +99 -32
- package/lib/tools/template/index.d.ts +324 -0
- package/lib/tools/template/mobile.d.ts +9 -0
- package/lib/tools/utils.d.ts +13 -5
- package/lib/type/ability.d.ts +25 -0
- package/lib/type/analyser.d.ts +18 -0
- package/lib/type/{iauth.d.ts → auth.d.ts} +0 -7
- package/lib/type/base.d.ts +16 -0
- package/lib/type/client.d.ts +164 -150
- package/lib/type/device.d.ts +103 -31
- package/lib/type/index.d.ts +3 -1
- package/lib/type/layout.d.ts +198 -13
- package/lib/type/logger.d.ts +19 -1
- package/lib/type/meeting.d.ts +294 -10
- package/lib/type/socket.d.ts +60 -0
- package/lib/type/stream.d.ts +21 -13
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +7 -5
- package/lib/main/layoutManager.d.ts +0 -244
- package/lib/tools/template.d.ts +0 -21
- /package/lib/tools/{logger.worker.d.ts → log/logger.worker.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 能力集 key
|
|
3
|
+
*
|
|
4
|
+
* @param { string } USE_SEC_API - 终端是否要使用uss新接口
|
|
5
|
+
* @param { string } MEETING_SHARE_NEW_PAGE_API - 终端是否要使用uss新接口
|
|
6
|
+
*/
|
|
7
|
+
export declare enum AbilityKey {
|
|
8
|
+
USE_SEC_API = "use_sec_api",
|
|
9
|
+
MEETING_SHARE_NEW_PAGE_API = "meeting_share_new_page_api"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 能力集
|
|
13
|
+
*/
|
|
14
|
+
export type AbilityResult = {
|
|
15
|
+
[key in AbilityKey]?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 本地能力集
|
|
19
|
+
*/
|
|
20
|
+
export type LocalAbility = {
|
|
21
|
+
[key in string]: {
|
|
22
|
+
value: number;
|
|
23
|
+
offset: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Audio Analyser Lib
|
|
3
|
+
*
|
|
4
|
+
* @summary short description for the file
|
|
5
|
+
*
|
|
6
|
+
* Created at : 2023-09-05 17:17:12
|
|
7
|
+
* Last modified : 2023-09-08 15:37:56
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* 分析器配置
|
|
11
|
+
*
|
|
12
|
+
* @param { number } fftSize - 执行快速傅里叶变换 (FFT) 以获得频域数据时使用的样本窗口大小,可选值:32/64/125/256/512/1024/2048
|
|
13
|
+
* @param { number } cardinalNumber - 转换0-128的基数,默认是1:1,配置128,如果将声量转为1:2效果,则配置为64,依此类推
|
|
14
|
+
*/
|
|
15
|
+
export interface AnalyserConfig {
|
|
16
|
+
fftSize?: number;
|
|
17
|
+
cardinalNumber?: number;
|
|
18
|
+
}
|
package/lib/type/base.d.ts
CHANGED
|
@@ -81,3 +81,19 @@ export interface IReturnResult {
|
|
|
81
81
|
detail: any;
|
|
82
82
|
}
|
|
83
83
|
export type Key = string | number;
|
|
84
|
+
/**
|
|
85
|
+
* localStorage Key
|
|
86
|
+
*
|
|
87
|
+
* @param { XY_ABILITY } - 能力结果
|
|
88
|
+
* @param { XY_LOG_SERVER } - 日志服务
|
|
89
|
+
* @param { XY_ERROR_CODE } - 错误码
|
|
90
|
+
* @param { XY_I18N_CODE } - 国际化
|
|
91
|
+
* @param { XY_TIMESTAMP } - 时间戳
|
|
92
|
+
*/
|
|
93
|
+
export declare enum STORAGE {
|
|
94
|
+
XY_ABILITY = "XY-ABILITY",
|
|
95
|
+
XY_LOG_SERVER = "xy-log-server",
|
|
96
|
+
XY_ERROR_CODE = "xy-error-code",
|
|
97
|
+
XY_I18N_CODE = "xy-i18n-code",
|
|
98
|
+
XY_TIMESTAMP = "xy-timestamp"
|
|
99
|
+
}
|
package/lib/type/client.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IToken } from './base';
|
|
2
2
|
import VideoManager from '../main/videoManager';
|
|
3
|
-
import { IInternals,
|
|
3
|
+
import { IInternals, StreamResolutionLevel, VideoQuality } from './stream';
|
|
4
4
|
import { SupportLocalLanguages } from '../enum';
|
|
5
|
-
import { ICloudRoomConfig } from './meeting';
|
|
5
|
+
import { ConferenceProperties, ICloudRoomConfig } from './meeting';
|
|
6
|
+
import { ContentTemplateMode, ExternalTemplateConfig, IRotateStyle, LayoutAvatarType, TemplateMode } from './layout';
|
|
7
|
+
import { AudioAnalyser } from '../tools/analyser';
|
|
6
8
|
/**
|
|
7
9
|
* 向Client推送流类型
|
|
8
10
|
*
|
|
@@ -63,27 +65,6 @@ export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
|
|
|
63
65
|
* @param REQUEST 视频请求中
|
|
64
66
|
*/
|
|
65
67
|
export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
|
|
66
|
-
/**
|
|
67
|
-
* Layout布局方式
|
|
68
|
-
*
|
|
69
|
-
* @param SPEAKER 默认值,演讲者模式,即 1大N小 画面模式
|
|
70
|
-
* @param GALLERY 另一种是画廊模式,即 宫格布局
|
|
71
|
-
*/
|
|
72
|
-
export type ITemplateMode = 'SPEAKER' | 'GALLERY';
|
|
73
|
-
/**
|
|
74
|
-
* 主画面/Content布局模式
|
|
75
|
-
*
|
|
76
|
-
* @param MULTI_PIC_CONTENT_HIGH_PRIORITY Content是大窗口
|
|
77
|
-
* @param MULTI_PIC_ACTIVE_HIGH_PRIORITY ActiveSpeaker是大窗口
|
|
78
|
-
* @param TWO_PIC_PIP 画中画模式(picture in picture)
|
|
79
|
-
* @param CONTENT_ONLY 只显示Content
|
|
80
|
-
* @param TWO_PIC_SYMMETRIC 对称显示content和speaker(side by side)
|
|
81
|
-
*/
|
|
82
|
-
export type IContentTemplateMode = 'MULTI_PIC_CONTENT_HIGH_PRIORITY' | 'MULTI_PIC_ACTIVE_HIGH_PRIORITY' | 'TWO_PIC_PIP' | 'CONTENT_ONLY' | 'TWO_PIC_SYMMETRIC';
|
|
83
|
-
/**
|
|
84
|
-
* 布局模式
|
|
85
|
-
*/
|
|
86
|
-
export type IMode = ITemplateMode | IContentTemplateMode;
|
|
87
68
|
/**
|
|
88
69
|
* 客户端状态
|
|
89
70
|
*
|
|
@@ -264,25 +245,16 @@ export type IFacingMode = keyof typeof FacingMode;
|
|
|
264
245
|
* @property { string } clientSecret 必填 | "" | 网关密钥,需要从对接人处获取
|
|
265
246
|
* @property { string } extId 非必填 企业ID
|
|
266
247
|
* @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
|
|
267
|
-
* @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
|
|
268
|
-
* @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
|
|
269
|
-
* @property { string } logServer 非必填 logServer服务地址,默认不需要配置, 待废弃
|
|
270
248
|
* @property { IClientLayout } layout 非必填 | AUTO | 布局模式,可选:AUTO | CUSTOM
|
|
271
|
-
* @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
|
|
272
|
-
* @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
|
|
273
|
-
* @property { boolean } muteVideo 非必填 | false | 是否开启/关闭摄像头入会,默认是false,开启摄像头
|
|
274
249
|
* @property { { offset?: number[]; elementId?: string } } container 非必填 | {} | 配置layout container容器节点和偏移量
|
|
275
250
|
* @property { number[] } container.offset 非必填 | [] | 配置[上 下 左 右]的偏移量,自动布局适用
|
|
276
251
|
* @property { string } container.elementId 非必填 | "" | 配置Layout需要包裹在elementId元素里面显示,并使用此元素的信息计算 Layout 的 size和 position
|
|
277
|
-
* @property { boolean } localHide 非必填 | false | 是否在页面上隐藏Local画面,默认不隐藏
|
|
278
|
-
* @property { boolean } localMirror 非必填 | true | 是否需要镜像Local画面,默认镜像Local
|
|
279
|
-
* @property { ITemplateMode } templateMode 非必填 | 布局模式,默认:SPEAKER,1大N小 画面布局模式,可选:SPEAKER | GALLERY
|
|
280
|
-
* @property { string } __hideId 是否是隐身入会模式,hide代表隐身入会,为空代表正常模式
|
|
281
|
-
* @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
|
|
282
252
|
* @property { boolean } isThird 埋点
|
|
283
253
|
* @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
|
|
284
|
-
*
|
|
285
|
-
* @property { boolean
|
|
254
|
+
*
|
|
255
|
+
* @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
|
|
256
|
+
* @property { boolean } localHide 非必填 | false | 是否在页面上隐藏Local画面,默认不隐藏
|
|
257
|
+
* @property { boolean } localMirror 非必填 | true | 是否需要镜像Local画面,默认镜像Local
|
|
286
258
|
*
|
|
287
259
|
*/
|
|
288
260
|
export interface IClientConfig {
|
|
@@ -290,82 +262,24 @@ export interface IClientConfig {
|
|
|
290
262
|
clientSecret?: string;
|
|
291
263
|
extId?: string;
|
|
292
264
|
server?: string;
|
|
293
|
-
wssServer?: string;
|
|
294
|
-
httpServer?: string;
|
|
295
|
-
logServer?: string;
|
|
296
265
|
layout?: IClientLayout;
|
|
297
|
-
debug?: boolean;
|
|
298
|
-
muteAudio?: boolean;
|
|
299
|
-
muteVideo?: boolean;
|
|
300
266
|
container?: {
|
|
301
267
|
offset?: number[];
|
|
302
268
|
elementId?: string;
|
|
303
269
|
};
|
|
304
|
-
localHide?: boolean;
|
|
305
|
-
localMirror?: boolean;
|
|
306
|
-
templateMode?: ITemplateMode;
|
|
307
|
-
__hideId?: number | string;
|
|
308
|
-
__monitorMode?: string;
|
|
309
270
|
isThird?: boolean;
|
|
310
271
|
isSupportHybridCloud?: boolean;
|
|
311
|
-
|
|
312
|
-
checkSSL?: boolean;
|
|
272
|
+
debug?: boolean;
|
|
313
273
|
}
|
|
314
274
|
export interface ILayoutParams {
|
|
315
275
|
rosters: IRoster[];
|
|
316
276
|
speakerInfo: ISpeakerInfo;
|
|
317
277
|
layout: ILayout[];
|
|
318
|
-
templateMode:
|
|
278
|
+
templateMode: TemplateMode | ContentTemplateMode;
|
|
319
279
|
invite: IInvite;
|
|
320
280
|
contentSenderPid: number;
|
|
321
281
|
localHide: boolean;
|
|
322
282
|
}
|
|
323
|
-
/**
|
|
324
|
-
* Layout 模版 分辨率
|
|
325
|
-
*
|
|
326
|
-
* @property { StreamResolutionLevel } normal 默认请流分辨率
|
|
327
|
-
* @property { StreamResolutionLevel } low 低性能请流分辨率
|
|
328
|
-
* @property { StreamResolutionLevel } high 高分辨率
|
|
329
|
-
*/
|
|
330
|
-
export interface ITemplateResolution {
|
|
331
|
-
normal: StreamResolutionLevel;
|
|
332
|
-
low: StreamResolutionLevel;
|
|
333
|
-
high?: StreamResolutionLevel;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Layout模版定义
|
|
337
|
-
*
|
|
338
|
-
* @property { number[] } position - 位置/尺寸比例
|
|
339
|
-
* @property { ITemplateResolution } resolution - 分辨率
|
|
340
|
-
* @property { number } resolution.normal - 正常分辨率
|
|
341
|
-
* @property { number } resolution.low - 低性能模式分辨率
|
|
342
|
-
* @property { number ?} resolution.high - 高分辨率
|
|
343
|
-
* @property { VideoQuality } quality - 请流质量
|
|
344
|
-
* @property { number } zIndex - 层级
|
|
345
|
-
* @property { string } type - 类型,LOCAL/CONTENT
|
|
346
|
-
*/
|
|
347
|
-
export type ITemplateObj = {
|
|
348
|
-
position: number[];
|
|
349
|
-
resolution: ITemplateResolution;
|
|
350
|
-
quality?: VideoQuality;
|
|
351
|
-
zIndex?: number;
|
|
352
|
-
type?: string;
|
|
353
|
-
};
|
|
354
|
-
export interface ITypeTemplate {
|
|
355
|
-
[id: string]: ITemplateObj[];
|
|
356
|
-
}
|
|
357
|
-
export interface ITemplateInfo {
|
|
358
|
-
length: number;
|
|
359
|
-
temp: {
|
|
360
|
-
[index: string]: ITemplateObj[];
|
|
361
|
-
};
|
|
362
|
-
rate: {
|
|
363
|
-
[index: number]: number;
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
export interface ITemplate {
|
|
367
|
-
[type: string]: ITemplateInfo;
|
|
368
|
-
}
|
|
369
283
|
/**
|
|
370
284
|
* @enum 默认常量列表
|
|
371
285
|
*/
|
|
@@ -391,10 +305,9 @@ export interface IDefault {
|
|
|
391
305
|
LOGIN_INFO: {
|
|
392
306
|
callUri: string;
|
|
393
307
|
securityKey: string;
|
|
394
|
-
access_token: string;
|
|
395
|
-
refresh_token: string;
|
|
396
308
|
id: number;
|
|
397
309
|
displayName: string;
|
|
310
|
+
token: IToken;
|
|
398
311
|
};
|
|
399
312
|
LAYOUT: ILayout;
|
|
400
313
|
MAP_RESOLUTION_STRING: {
|
|
@@ -406,7 +319,6 @@ export interface IDefault {
|
|
|
406
319
|
CONF_INFO: IConfInfo;
|
|
407
320
|
CLOUD_ROOOM_INFO: ICloudRoomConfig;
|
|
408
321
|
CONFERENCE_INFO: IConferenceInfo;
|
|
409
|
-
MAX_PEOPLE_RESOLUTION: StreamResolution;
|
|
410
322
|
}
|
|
411
323
|
/**
|
|
412
324
|
* SDK登录用户信息
|
|
@@ -424,8 +336,7 @@ export interface IDefault {
|
|
|
424
336
|
export interface ILoginInfo {
|
|
425
337
|
callUri?: string;
|
|
426
338
|
securityKey: string;
|
|
427
|
-
|
|
428
|
-
refresh_token?: string;
|
|
339
|
+
token: IToken;
|
|
429
340
|
id: number;
|
|
430
341
|
displayName?: string;
|
|
431
342
|
cellPhone?: string;
|
|
@@ -474,6 +385,7 @@ export interface IMeetingInfo {
|
|
|
474
385
|
meetingId: string;
|
|
475
386
|
callUri: string;
|
|
476
387
|
vcNumber: string;
|
|
388
|
+
remoteUri: string;
|
|
477
389
|
}
|
|
478
390
|
/**
|
|
479
391
|
* 调度失败的uri列表项目
|
|
@@ -548,9 +460,9 @@ export interface IHttpConfig {
|
|
|
548
460
|
*
|
|
549
461
|
* 此信息是由业务层提供网关配置
|
|
550
462
|
*/
|
|
551
|
-
export interface
|
|
552
|
-
|
|
553
|
-
|
|
463
|
+
export interface LoginTokenInfo extends IToken {
|
|
464
|
+
clientId: string;
|
|
465
|
+
clientSecret: string;
|
|
554
466
|
}
|
|
555
467
|
/**
|
|
556
468
|
* 会议室配置信息
|
|
@@ -574,9 +486,10 @@ export interface IConfAuxProperties {
|
|
|
574
486
|
* @property { string } avatar 头像
|
|
575
487
|
* @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
|
|
576
488
|
* @property { string } meetingId 当前会议ID
|
|
577
|
-
* @property { string }
|
|
489
|
+
* @property { string } config 会议室配置
|
|
490
|
+
* @property { string } displayConfig 可见性配置
|
|
578
491
|
*/
|
|
579
|
-
export interface IConferenceInfo {
|
|
492
|
+
export interface IConferenceInfo extends Partial<ConferenceProperties> {
|
|
580
493
|
callNumber?: string;
|
|
581
494
|
callUrl?: string;
|
|
582
495
|
deviceId?: string;
|
|
@@ -589,6 +502,26 @@ export interface IConferenceInfo {
|
|
|
589
502
|
inviteInfo?: InviteInfo;
|
|
590
503
|
meetingId?: string;
|
|
591
504
|
displayNum?: string;
|
|
505
|
+
config?: IConferenceConfig;
|
|
506
|
+
displayConfig?: IConferenceDisplayConfig;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* 会议室配置
|
|
510
|
+
*
|
|
511
|
+
* @param { boolean } displayConfNo - 是否显示会议号
|
|
512
|
+
* @param { string } subtitle - 是否显示字幕 'true' | 'false'
|
|
513
|
+
*/
|
|
514
|
+
export interface IConferenceConfig {
|
|
515
|
+
displayConfNo?: boolean;
|
|
516
|
+
subtitle?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* 会议室可见性配置
|
|
520
|
+
*
|
|
521
|
+
* @param { boolean } subtitle - 是否显示字幕
|
|
522
|
+
*/
|
|
523
|
+
export interface IConferenceDisplayConfig {
|
|
524
|
+
subtitle?: boolean;
|
|
592
525
|
}
|
|
593
526
|
/**
|
|
594
527
|
* 会议分享信息
|
|
@@ -638,12 +571,20 @@ export interface InviteInfo {
|
|
|
638
571
|
* @property { string } confNumber 云会议号/终端号/手机号
|
|
639
572
|
* @property { string? } password 入会密码,没有则为空
|
|
640
573
|
* @property { string? } displayName 入会显示昵称
|
|
574
|
+
* @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
|
|
575
|
+
* @property { boolean } muteVideo 非必填 | false | 是否开启/关闭摄像头入会,默认是false,开启摄像头
|
|
576
|
+
* @property { number | string } __hideId 是否是隐身入会模式,默认为空值,代表正常非隐身模式
|
|
577
|
+
* @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
|
|
641
578
|
*/
|
|
642
579
|
export interface IMackCall {
|
|
643
580
|
token: string;
|
|
644
581
|
confNumber: string;
|
|
645
582
|
password?: string;
|
|
646
583
|
displayName?: string;
|
|
584
|
+
muteAudio?: boolean;
|
|
585
|
+
muteVideo?: boolean;
|
|
586
|
+
__hideId?: number | string;
|
|
587
|
+
__monitorMode?: string;
|
|
647
588
|
}
|
|
648
589
|
/**
|
|
649
590
|
* 呼叫的会议信息
|
|
@@ -720,7 +661,7 @@ export interface IMeetingControl {
|
|
|
720
661
|
/**
|
|
721
662
|
* Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
|
|
722
663
|
*
|
|
723
|
-
* @property { string } id 参会者唯一
|
|
664
|
+
* @property { string } id 参会者唯一ID
|
|
724
665
|
* @property { IDeviceType } deviceType 设备类型
|
|
725
666
|
* @property { string } endpointId 设备id
|
|
726
667
|
* @property { string } displayName 参会者名称
|
|
@@ -822,6 +763,9 @@ export declare enum MuteReason {
|
|
|
822
763
|
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
823
764
|
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
824
765
|
* @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
766
|
+
* @property { number } onHoldCount 等候室人数
|
|
767
|
+
* @property { number } audioTxUnMuteEpCount 未静音人数
|
|
768
|
+
* @property { number } videoTxUnMuteEpCount 未关闭摄像头人数
|
|
825
769
|
*/
|
|
826
770
|
export interface IConfInfo {
|
|
827
771
|
participantCount: number;
|
|
@@ -830,6 +774,9 @@ export interface IConfInfo {
|
|
|
830
774
|
contentUri: string;
|
|
831
775
|
actSpkUri: string;
|
|
832
776
|
mediaGroupInfo: IMediaGroupInfo[];
|
|
777
|
+
onHoldCount?: number;
|
|
778
|
+
audioTxUnMuteEpCount?: number;
|
|
779
|
+
videoTxUnMuteEpCount?: number;
|
|
833
780
|
}
|
|
834
781
|
export interface IMediaGroupInfo {
|
|
835
782
|
endpointCount: number;
|
|
@@ -857,42 +804,57 @@ export interface ISpeakerInfo {
|
|
|
857
804
|
endpointId: string;
|
|
858
805
|
pid: number;
|
|
859
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* 头像
|
|
809
|
+
*
|
|
810
|
+
* @property { LayoutAvatarType } type - 头像类型,名称头像、人物头像
|
|
811
|
+
* @property { string } value - 内容
|
|
812
|
+
*/
|
|
813
|
+
export interface LayoutAvatar {
|
|
814
|
+
type: LayoutAvatarType;
|
|
815
|
+
value: string;
|
|
816
|
+
}
|
|
860
817
|
/**
|
|
861
818
|
* 布局对象
|
|
862
819
|
*
|
|
863
|
-
* @property { number[] } position 模版位置,业务层可以忽略
|
|
864
|
-
* @property { StreamResolutionLevel } resolution 当前布局对象的分辨数据
|
|
865
820
|
* @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
|
|
866
|
-
* @property { any } rotate 当前参会者的旋转信息
|
|
867
821
|
* @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
|
|
822
|
+
* @property { IRotateStyle | null } rotate 当前参会者的旋转信息,用于设置video标签样式
|
|
823
|
+
* @property { IRotationInfoTotalItem | null } rotationInfo 当前参会者的旋转信息
|
|
868
824
|
* @property { { left: string; top: string; width: string; height: string } } positionStyle 当前参会者的位置样式
|
|
825
|
+
* @property { LayoutAvatar | null } avatar 头像, 如未在setFeatureConfig配置相关参数,则返回null
|
|
826
|
+
* @property { boolean } isMirror 是否是镜像画面
|
|
827
|
+
* @property { ExternalTemplateConfig } templateConfig 忽略
|
|
869
828
|
* @property { { width: number; height: number } } positionInfo 忽略
|
|
870
|
-
* @property {
|
|
829
|
+
* @property { number[] } position 忽略
|
|
871
830
|
* @property { boolean } deal 忽略
|
|
872
|
-
* @property { number }
|
|
831
|
+
* @property { number } index 忽略
|
|
832
|
+
* @property { number } resolution 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
833
|
+
* @property { number } quality 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
873
834
|
*/
|
|
874
835
|
export interface ILayout {
|
|
875
|
-
position?: number[];
|
|
876
|
-
resolution?: StreamResolutionLevel;
|
|
877
836
|
roster: IRoster;
|
|
878
|
-
|
|
879
|
-
|
|
837
|
+
state: ILayoutState;
|
|
838
|
+
rotate: IRotateStyle | null;
|
|
839
|
+
rotationInfo: IRotationInfoTotalItem | null;
|
|
840
|
+
avatar: LayoutAvatar | null;
|
|
880
841
|
positionStyle?: {
|
|
881
842
|
left: string;
|
|
882
843
|
top: string;
|
|
883
844
|
width: string;
|
|
884
845
|
height: string;
|
|
885
846
|
};
|
|
847
|
+
isMirror?: boolean;
|
|
848
|
+
templateConfig?: ExternalTemplateConfig;
|
|
849
|
+
position?: number[];
|
|
886
850
|
positionInfo?: {
|
|
887
851
|
width: number;
|
|
888
852
|
height: number;
|
|
889
853
|
};
|
|
890
|
-
quality?: 0 | 100 | 200;
|
|
891
854
|
deal?: boolean;
|
|
892
|
-
zIndex?: number;
|
|
893
|
-
avatar?: string;
|
|
894
|
-
textAvatar?: string;
|
|
895
855
|
index?: number;
|
|
856
|
+
resolution?: number;
|
|
857
|
+
quality?: number;
|
|
896
858
|
}
|
|
897
859
|
/**
|
|
898
860
|
* Local布局对象
|
|
@@ -1256,19 +1218,19 @@ export interface IReceiveCustomMessage {
|
|
|
1256
1218
|
* SDK功能控制开关,用于内部是否启用某些功能的运行
|
|
1257
1219
|
* 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
|
|
1258
1220
|
*
|
|
1259
|
-
* @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId
|
|
1260
|
-
* @property { boolean } enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true
|
|
1261
|
-
* @property { boolean } enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false
|
|
1262
|
-
* @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),是否可以请1080P的视频流,默认不启用,设置为false
|
|
1263
|
-
* @property { boolean } enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false
|
|
1264
|
-
* @property { boolean } enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false
|
|
1265
|
-
* @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true
|
|
1266
|
-
* @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false
|
|
1267
|
-
* @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false
|
|
1268
|
-
* @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false
|
|
1269
|
-
* @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false
|
|
1221
|
+
* @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音
|
|
1222
|
+
* @property { boolean } enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true
|
|
1223
|
+
* @property { boolean } enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false
|
|
1224
|
+
* @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),是否可以请1080P的视频流,默认不启用,设置为false
|
|
1225
|
+
* @property { boolean } enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false
|
|
1226
|
+
* @property { boolean } enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false
|
|
1227
|
+
* @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true
|
|
1228
|
+
* @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false
|
|
1229
|
+
* @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false
|
|
1230
|
+
* @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false
|
|
1231
|
+
* @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false
|
|
1270
1232
|
* @property { boolean } enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
|
|
1271
|
-
*
|
|
1233
|
+
* @property { boolean } enableHideLocalView 是否启用隐藏本地画面模式,默认不启用,设置为false
|
|
1272
1234
|
*/
|
|
1273
1235
|
export interface IFeatureConfig {
|
|
1274
1236
|
enableMeetingShout?: boolean;
|
|
@@ -1283,7 +1245,20 @@ export interface IFeatureConfig {
|
|
|
1283
1245
|
enableLayoutAvatar?: boolean;
|
|
1284
1246
|
enableMobileNotAuth?: boolean;
|
|
1285
1247
|
enableWatermarkContent?: boolean;
|
|
1248
|
+
enableHideLocalView?: boolean;
|
|
1286
1249
|
}
|
|
1250
|
+
/**
|
|
1251
|
+
* SDK功能控制开关的key
|
|
1252
|
+
*/
|
|
1253
|
+
export type IFeatureConfigKey = keyof IFeatureConfig;
|
|
1254
|
+
/**
|
|
1255
|
+
* SDK功能控制开关的key List
|
|
1256
|
+
*/
|
|
1257
|
+
export type IFeatureConfigKeys = Array<IFeatureConfigKey>;
|
|
1258
|
+
/**
|
|
1259
|
+
* SDK功能控制开关的Value
|
|
1260
|
+
*/
|
|
1261
|
+
export type IFeatureConfigValue<K extends keyof IFeatureConfig> = IFeatureConfig[K];
|
|
1287
1262
|
export interface IConfMgmtUrl {
|
|
1288
1263
|
pc: string;
|
|
1289
1264
|
member: string;
|
|
@@ -1395,13 +1370,30 @@ export interface unMuteVideoQueryToast {
|
|
|
1395
1370
|
*
|
|
1396
1371
|
* @property { string } alias - 别名id
|
|
1397
1372
|
* @property { string } name - 讲话者名称
|
|
1398
|
-
* @property {
|
|
1399
|
-
*
|
|
1373
|
+
* @property { number } pid - pid
|
|
1374
|
+
* @property { string } endpointId - 用户标识ID
|
|
1375
|
+
* @property { string } trackId - StreamTrack轨道ID
|
|
1376
|
+
* @property { boolean } isLocal - 是否是Local设备
|
|
1377
|
+
* @property { number } level - 音量等级
|
|
1378
|
+
* @property { string } id - 参会者唯一ID,通过roster数据获取
|
|
1400
1379
|
*/
|
|
1401
1380
|
export interface SpeakersInfoObj {
|
|
1402
1381
|
alias: string;
|
|
1403
1382
|
name: string;
|
|
1404
1383
|
pid: number;
|
|
1384
|
+
endpointId?: string;
|
|
1385
|
+
trackId?: string;
|
|
1386
|
+
isLocal?: boolean;
|
|
1387
|
+
level?: number;
|
|
1388
|
+
id?: string;
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* 实时讲话人内部数据
|
|
1392
|
+
*/
|
|
1393
|
+
export interface SpeakerInternalData {
|
|
1394
|
+
stream: MediaStream | null;
|
|
1395
|
+
analyser: AudioAnalyser | null;
|
|
1396
|
+
timestamp: number;
|
|
1405
1397
|
}
|
|
1406
1398
|
/**
|
|
1407
1399
|
* 实时讲话人消息体
|
|
@@ -1430,27 +1422,49 @@ export interface IStreamCapability {
|
|
|
1430
1422
|
resolution: StreamResolutionLevel;
|
|
1431
1423
|
}
|
|
1432
1424
|
/**
|
|
1433
|
-
*
|
|
1425
|
+
* 截图参数
|
|
1434
1426
|
*
|
|
1435
|
-
* @
|
|
1436
|
-
* @
|
|
1427
|
+
* @property { string } rosterId - 用户id,通过layout事件列表获取
|
|
1428
|
+
* @property { string } imageType - 图片格式, 默认'image/png'
|
|
1429
|
+
* @property { number } compressLevel - 图片质量,0-1
|
|
1437
1430
|
*/
|
|
1438
|
-
export
|
|
1439
|
-
|
|
1440
|
-
|
|
1431
|
+
export interface SnapshotParams {
|
|
1432
|
+
rosterId: string;
|
|
1433
|
+
imageType?: string;
|
|
1434
|
+
compressLevel?: number;
|
|
1441
1435
|
}
|
|
1442
1436
|
/**
|
|
1443
|
-
*
|
|
1437
|
+
* canvas绘制video参数
|
|
1444
1438
|
*
|
|
1445
|
-
* @property {
|
|
1446
|
-
* @property { number }
|
|
1447
|
-
* @property {
|
|
1439
|
+
* @property { boolean } isMirror - 是否镜像显示
|
|
1440
|
+
* @property { number } rotate - 是否旋转
|
|
1441
|
+
* @property { string } imageType - 图片格式, 默认'image/png'
|
|
1442
|
+
* @property { number } compressLevel - 图片质量,0-1
|
|
1448
1443
|
*/
|
|
1449
|
-
export interface
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1444
|
+
export interface SnapshotOptions {
|
|
1445
|
+
isMirror?: boolean;
|
|
1446
|
+
rotate?: number;
|
|
1447
|
+
imageType?: string;
|
|
1448
|
+
compressLevel?: number;
|
|
1449
|
+
}
|
|
1450
|
+
/**
|
|
1451
|
+
* 截图结果
|
|
1452
|
+
*
|
|
1453
|
+
* @property { string } dataURL - 图片数据
|
|
1454
|
+
* @property { number } width - 图片的宽度
|
|
1455
|
+
* @property { number } height - 图片的高度
|
|
1456
|
+
*/
|
|
1457
|
+
export interface SnapshotResult {
|
|
1458
|
+
dataURL: string;
|
|
1459
|
+
width: number;
|
|
1460
|
+
height: number;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* 本地视频渲染参数
|
|
1464
|
+
*
|
|
1465
|
+
* @property { boolean} isMirror - 是否镜像显示
|
|
1466
|
+
*/
|
|
1467
|
+
export interface LocalViewParams {
|
|
1468
|
+
isMirror: boolean;
|
|
1455
1469
|
}
|
|
1456
1470
|
export {};
|