@xylink/xy-rtc-sdk 4.0.1 → 4.0.2-beta.3
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/{README.MD → README.md} +1 -1
- package/action/ability.d.ts +151 -0
- package/action/api.d.ts +252 -0
- package/action/auth.d.ts +134 -0
- package/action/base.d.ts +13 -0
- package/action/config.d.ts +63 -0
- package/action/control.d.ts +101 -0
- package/action/enterprise.d.ts +66 -0
- package/{lib/tools/httpClient.d.ts → action/http.d.ts} +19 -11
- package/action/index.d.ts +92 -0
- package/action/index.type.d.ts +30 -0
- package/action/log.d.ts +17 -0
- package/action/meeting.d.ts +107 -0
- package/{lib/enum → enum}/client.d.ts +1 -6
- package/{lib/enum → enum}/constraints.d.ts +1 -6
- package/{lib/enum → enum}/device.d.ts +6 -0
- package/{lib/enum/errorCode.d.ts → enum/errorCode/common.d.ts} +1 -22
- package/enum/errorCode/index.d.ts +6 -0
- package/enum/errorCode/server.d.ts +10 -0
- package/enum/errorCode/signal.d.ts +15 -0
- package/{lib/enum → enum}/index.d.ts +11 -8
- package/enum/meeting.d.ts +15 -0
- package/{lib/enum → enum}/polling.d.ts +1 -0
- package/feature/artboard/index.d.ts +139 -0
- package/feature/artboard/index.type.d.ts +264 -0
- package/{lib/feature → feature}/customMessage/index.d.ts +3 -8
- package/{lib/feature → feature}/edu/index.d.ts +2 -1
- package/{lib/feature → feature}/edu/index.type.d.ts +1 -0
- package/feature/im/index.d.ts +89 -0
- package/feature/im/index.type.d.ts +30 -0
- package/feature/index.d.ts +29 -0
- package/feature/query/index.d.ts +36 -0
- package/feature/query/index.type.d.ts +61 -0
- package/{lib/feature → feature}/speaker/index.d.ts +5 -10
- package/{lib/feature → feature}/speaker/index.type.d.ts +1 -0
- package/{lib/index.d.ts → index.d.ts} +19 -21
- package/{lib/interface → interface}/clientInterface.type.d.ts +24 -11
- package/{lib/interface → interface}/contentTrackInterface.type.d.ts +1 -6
- package/{lib/interface → interface}/event.type.d.ts +60 -1
- package/{lib/interface → interface}/videoAudioTrackInterface.type.d.ts +2 -7
- package/{lib/main → main}/ability/const.d.ts +1 -0
- package/{lib/main → main}/ability/index.d.ts +5 -10
- package/main/auth/index.d.ts +160 -0
- package/main/auth/index.type.d.ts +63 -0
- package/main/client/clientBase.d.ts +60 -0
- package/main/client/clientState.d.ts +36 -0
- package/{lib/main/client.d.ts → main/client/index.d.ts} +253 -79
- package/main/client/index.type.d.ts +42 -0
- package/{lib/main → main}/device/index.d.ts +5 -15
- package/{lib/tools → main/helper}/i18n.d.ts +2 -1
- package/{lib/main → main}/helper/index.d.ts +9 -7
- package/{lib/main → main}/layout/index.d.ts +7 -16
- package/{lib/main → main}/layout/index.type.d.ts +10 -9
- package/{lib/main → main}/layout/polling.d.ts +3 -11
- package/{lib/main → main}/layout/state.d.ts +4 -10
- package/{lib/tools → main/layout}/template/index.d.ts +25 -7
- package/{lib/main/layout/template.d.ts → main/layout/template/manager.d.ts} +2 -1
- package/main/layout/template/mobile.d.ts +4 -0
- package/main/layout/template/polling.d.ts +3 -0
- package/{lib/main → main}/media/index.d.ts +13 -11
- package/{lib/main → main}/media/index.type.d.ts +1 -0
- package/{lib/main → main}/meeting/control.d.ts +20 -1
- package/{lib/main → main}/meeting/control.type.d.ts +1 -0
- package/{lib/main → main}/meeting/index.d.ts +39 -32
- package/main/meeting/index.type.d.ts +43 -0
- package/{lib/main → main}/meeting/verify.d.ts +2 -7
- package/{lib/main/peer.d.ts → main/peer/index.d.ts} +30 -25
- package/main/peer/index.type.d.ts +10 -0
- package/{lib/main → main}/plugin/index.d.ts +2 -7
- package/{lib/main → main}/quality/index.d.ts +1 -6
- package/{lib/main → main}/quality/quality.worker.d.ts +1 -4
- package/{lib/main → main}/quality/report.d.ts +2 -1
- package/{lib/main → main}/render/index.d.ts +4 -9
- package/{lib/main → main}/render/index.type.d.ts +2 -7
- package/{lib/main → main}/render/videoManager.d.ts +2 -7
- package/{lib/main → main}/roster/index.d.ts +9 -9
- package/{lib/main → main}/server/index.d.ts +73 -4
- package/main/server/index.type.d.ts +53 -0
- package/{lib/main → main}/signal/index.d.ts +2 -1
- package/{lib/main → main}/socket/index.d.ts +6 -12
- package/{lib/main → main}/stream/index.d.ts +17 -21
- package/{lib/main → main}/track/baseTrack.d.ts +6 -14
- package/{lib/main → main}/track/contentTrack.d.ts +4 -12
- package/main/track/customContentTrack.d.ts +10 -0
- package/main/track/customVideoAudioTrack.d.ts +10 -0
- package/{lib/main → main}/track/helper.d.ts +1 -1
- package/{lib/main → main}/track/videoAudioCapture.d.ts +2 -10
- package/{lib/main → main}/track/videoAudioTrack.d.ts +13 -15
- package/{lib/main → main}/vom/index.d.ts +2 -7
- package/package.json +26 -111
- package/{lib/tools/analyser.d.ts → tools/analyser/index.d.ts} +2 -9
- package/{lib/tools/analyserManager.d.ts → tools/analyser/manager.d.ts} +4 -13
- package/{lib/tools → tools}/config.d.ts +3 -10
- package/tools/data/list.d.ts +87 -0
- package/tools/data/map.d.ts +17 -0
- package/{lib/tools/detectBrowser/index.d.ts → tools/detector/browser.d.ts} +3 -3
- package/{lib/tools/detectTool → tools/detector}/index.d.ts +3 -7
- package/{lib/tools/detectStream/index.d.ts → tools/detector/stream.d.ts} +2 -9
- package/{lib/tools → tools}/emitter.d.ts +9 -3
- package/tools/frame/index.d.ts +36 -0
- package/tools/frame/index.type.d.ts +1 -0
- package/tools/index.d.ts +72 -0
- package/{lib/tools/dbManager.d.ts → tools/log/db.d.ts} +8 -14
- package/{lib/tools → tools}/log/logger.d.ts +6 -9
- package/tools/log/logger.worker.d.ts +10 -0
- package/{lib/tools → tools}/log/loggerManager.d.ts +3 -3
- package/tools/log/utils.d.ts +6 -0
- package/{lib/tools → tools}/pressure/index.d.ts +2 -9
- package/{lib/tools/promiseQueue.d.ts → tools/queue/async.d.ts} +3 -9
- package/tools/queue/queue.type.d.ts +10 -0
- package/{lib/tools/queue.d.ts → tools/queue/sync.d.ts} +3 -9
- package/{lib/tools → tools}/resize.d.ts +3 -4
- package/{lib/tools/snapshot.d.ts → tools/snapshot/index.d.ts} +3 -11
- package/tools/snapshot/index.type.d.ts +38 -0
- package/{lib/tools → tools/socket}/socket.d.ts +6 -10
- package/tools/socket/socketManager.d.ts +32 -0
- package/tools/store.d.ts +47 -0
- package/tools/utils.d.ts +162 -0
- package/{lib/tools → tools}/verify.d.ts +1 -1
- package/tools/window.d.ts +31 -0
- package/{lib/type → type}/ability.d.ts +3 -1
- package/{lib/type → type}/analyser.d.ts +1 -8
- package/{lib/type → type}/auth.d.ts +34 -0
- package/{lib/type → type}/base.d.ts +43 -11
- package/{lib/type → type}/capture.d.ts +1 -0
- package/{lib/type → type}/client.d.ts +65 -70
- package/{lib/type → type}/index.d.ts +5 -3
- package/{lib/type → type}/layout.d.ts +15 -1
- package/{lib/type → type}/logger.d.ts +1 -6
- package/{lib/type → type}/meeting.d.ts +105 -15
- package/{lib/type → type}/quality.d.ts +2 -7
- package/{lib/type → type}/stream.d.ts +4 -5
- package/{lib/type → type}/track.d.ts +1 -9
- package/xyrtc.js +23212 -0
- package/lib/action/index.d.ts +0 -415
- package/lib/enum/meeting.d.ts +0 -4
- package/lib/feature/index.d.ts +0 -3
- package/lib/main/auth/index.d.ts +0 -101
- package/lib/main/clientBase.d.ts +0 -40
- package/lib/main/clientState.d.ts +0 -56
- package/lib/main/server/index.type.d.ts +0 -21
- package/lib/main/track/customContentTrack.d.ts +0 -18
- package/lib/main/track/customVideoAudioTrack.d.ts +0 -18
- package/lib/tools/enum.d.ts +0 -6
- package/lib/tools/index.d.ts +0 -8
- package/lib/tools/log/logger.worker.d.ts +0 -13
- package/lib/tools/regex.d.ts +0 -4
- package/lib/tools/store.d.ts +0 -15
- package/lib/tools/template/mobile.d.ts +0 -9
- package/lib/tools/template/polling.d.ts +0 -8
- package/lib/tools/utils.d.ts +0 -97
- package/lib/xyrtc.cjs.js +0 -1
- package/lib/xyrtc.umd.js +0 -1
- /package/{lib/enum → enum}/analyser.d.ts +0 -0
- /package/{lib/enum → enum}/i18n.d.ts +0 -0
- /package/{lib/interface → interface}/baseModule.type.d.ts +0 -0
- /package/{lib/main → main}/device/index.type.d.ts +0 -0
- /package/{lib/main → main}/helper/index.type.d.ts +0 -0
- /package/{lib/main → main}/meeting/verify.type.d.ts +0 -0
- /package/{lib/main → main}/render/videoManager.type.d.ts +0 -0
- /package/{lib/main → main}/vom/index.type.d.ts +0 -0
- /package/{lib/tools/detectTool → tools/detector}/index.type.d.ts +0 -0
- /package/{lib/tools/detectStream/index.type.d.ts → tools/detector/stream.type.d.ts} +0 -0
- /package/{lib/tools → tools}/pressure/index.type.d.ts +0 -0
- /package/{lib/type → type}/action.d.ts +0 -0
- /package/{lib/type → type}/peer.d.ts +0 -0
- /package/{lib/type → type}/polling.d.ts +0 -0
- /package/{lib/type → type}/socket.d.ts +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IToken } from './base';
|
|
2
|
-
import { IInternals, StreamFrameRate, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
|
|
3
|
-
import { SupportLocalLanguages } from '../enum/index';
|
|
4
|
-
import { ConferenceProperties, ICloudRoomConfig, WatermarkRange } from './meeting';
|
|
5
|
-
import { ContentTemplateMode, TemplateMode, ChairManReason } from './layout';
|
|
6
1
|
import { ILayout, IRoster } from './index';
|
|
2
|
+
import { ContentTemplateMode, TemplateMode, ChairManReason } from './layout';
|
|
3
|
+
import { ConferenceProperties, ICloudRoomConfig, WatermarkRange, WatermarkStatus } from './meeting';
|
|
4
|
+
import { SupportLocalLanguages } from '../enum/index';
|
|
5
|
+
import { IInternals, StreamFrameRate, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
|
|
6
|
+
import { IToken } from './base';
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* 向Client推送流类型
|
|
9
10
|
*
|
|
@@ -29,13 +30,6 @@ export declare enum PushType {
|
|
|
29
30
|
'VIDEO_AUDIO' = "VIDEO_AUDIO",
|
|
30
31
|
'VIDEO_AUDIO_PIPE' = "VIDEO_AUDIO_PIPE"
|
|
31
32
|
}
|
|
32
|
-
/**
|
|
33
|
-
* 画面布局模式
|
|
34
|
-
*
|
|
35
|
-
* @param AUTO 自动布局,按照宫格/演讲者布局模式返回画面数据
|
|
36
|
-
* @param CUSTOM 自定义布局,上报基础数据,业务自行处理参会者请流,位置和尺寸计算
|
|
37
|
-
*/
|
|
38
|
-
export type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
|
|
39
33
|
/**
|
|
40
34
|
* 分享Content内容的状态
|
|
41
35
|
*
|
|
@@ -158,8 +152,8 @@ export declare enum MeetingState {
|
|
|
158
152
|
/**
|
|
159
153
|
* 画面布局模式
|
|
160
154
|
*
|
|
161
|
-
* @param AUTO -
|
|
162
|
-
* @param CUSTOM -
|
|
155
|
+
* @param AUTO - 自动布局,按照宫格/演讲者布局模式返回画面数据
|
|
156
|
+
* @param CUSTOM - 自定义布局,上报基础数据,业务自行处理参会者请流,位置和尺寸计算
|
|
163
157
|
*/
|
|
164
158
|
export declare enum LayoutMode {
|
|
165
159
|
AUTO = "AUTO",
|
|
@@ -171,7 +165,7 @@ export declare enum LayoutMode {
|
|
|
171
165
|
* @param RECORD_STATE_IDLE - 停止录制成功
|
|
172
166
|
* @param RECORD_STATE_STARTING - 开启录制
|
|
173
167
|
* @param RECORD_STATE_STARTED - 开启录制成功
|
|
174
|
-
* @param RECORD_STATE_STOPING -
|
|
168
|
+
* @param RECORD_STATE_STOPING - 停止录制进行中
|
|
175
169
|
*/
|
|
176
170
|
export declare enum RecordingState {
|
|
177
171
|
RECORD_STATE_IDLE = "RECORD_STATE_IDLE",
|
|
@@ -227,7 +221,7 @@ export interface XYClientContainer {
|
|
|
227
221
|
* @property { string } clientSecret - 必填,网关密钥
|
|
228
222
|
* @property { string } extId - 必填,企业ID
|
|
229
223
|
* @property { string } server - 可选,服务器地址, IP/域名 + 端口(可选),如: cloudapi.xylink.com:443
|
|
230
|
-
* @property {
|
|
224
|
+
* @property { LayoutMode } layout - 可选,布局模式,默认值是:AUTO
|
|
231
225
|
* @property { XYClientContainer } container - 可选,配置布局容器节点和偏移量
|
|
232
226
|
* @property { boolean } isSupportHybridCloud - 可选,标识是否是混合云环境,默认值是false,代表不是混合云环境
|
|
233
227
|
* @property { boolean } debug - 可选,是否接收所有参会者音视频状态数据,默认值是false,代表关闭调试模式
|
|
@@ -240,7 +234,7 @@ export interface IClientConfig {
|
|
|
240
234
|
clientSecret: string;
|
|
241
235
|
extId: string;
|
|
242
236
|
server?: string;
|
|
243
|
-
layout?:
|
|
237
|
+
layout?: LayoutMode;
|
|
244
238
|
container?: XYClientContainer;
|
|
245
239
|
isThird?: boolean;
|
|
246
240
|
isSupportHybridCloud?: boolean;
|
|
@@ -270,6 +264,7 @@ export interface XYMeetingDeviceStatus {
|
|
|
270
264
|
*/
|
|
271
265
|
export interface IDefault {
|
|
272
266
|
CLIENT_TYPE: string;
|
|
267
|
+
MOBILE_CLIENT_TYPE: string;
|
|
273
268
|
INIT_INTERNALS: IInternals;
|
|
274
269
|
RESOLUTION: number;
|
|
275
270
|
ROSTER: IRoster;
|
|
@@ -316,6 +311,7 @@ export interface IDefault {
|
|
|
316
311
|
* @property { string } cellPhone - 呼叫号码
|
|
317
312
|
* @property { string } extUserId - 第三方用户ID
|
|
318
313
|
* @property { string } enterpriseId - 企业ID
|
|
314
|
+
* @property { string } profilePicture - 账号头像
|
|
319
315
|
*/
|
|
320
316
|
export interface ILoginInfo {
|
|
321
317
|
callUri?: string;
|
|
@@ -326,6 +322,7 @@ export interface ILoginInfo {
|
|
|
326
322
|
cellPhone?: string;
|
|
327
323
|
extUserId?: string;
|
|
328
324
|
enterpriseId?: string;
|
|
325
|
+
profilePicture?: string;
|
|
329
326
|
}
|
|
330
327
|
export interface ICodeList {
|
|
331
328
|
version: string;
|
|
@@ -350,25 +347,29 @@ export type IOPERATE_MAP = {
|
|
|
350
347
|
/**
|
|
351
348
|
* 配置画面数据
|
|
352
349
|
*
|
|
353
|
-
* @property { string } calluri -
|
|
350
|
+
* @property { string } calluri - 必填,默认给""值,设备URI字段,如果未指定则按照优先级自动填充画面
|
|
354
351
|
* @property { StreamResolutionLevel } resolution - 必填,指定画面分辨率
|
|
355
352
|
* @property { VideoQuality } quality - 必填,指定视频质量,建议people画面使用0或者1,content画面使用2
|
|
356
353
|
* @property { number } mediagroupid - 必填,指定设备的类型,可选:0|1,0代表people画面,1代表content共享画面
|
|
357
|
-
* @property { boolean } isContent - 可选,忽略此参数,是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数
|
|
358
|
-
* @property { string } callUri - 可选,忽略此参数,NewLayout版本无此参数
|
|
359
354
|
*/
|
|
360
355
|
export type IReqInfo = {
|
|
361
356
|
calluri: string;
|
|
362
357
|
resolution: StreamResolutionLevel;
|
|
363
358
|
quality: VideoQuality;
|
|
364
|
-
mediagroupid
|
|
365
|
-
isContent?: boolean;
|
|
366
|
-
callUri?: string;
|
|
359
|
+
mediagroupid: number;
|
|
367
360
|
};
|
|
361
|
+
/**
|
|
362
|
+
* 会议相关信息, 用于接口请求参数
|
|
363
|
+
*
|
|
364
|
+
* @property { string } meetingId - 会议ID
|
|
365
|
+
* @property { string } callUri - 会议号
|
|
366
|
+
* @property { string } callNumber - 会议号
|
|
367
|
+
* @property { string } remoteUri - 会议号
|
|
368
|
+
*/
|
|
368
369
|
export interface IMeetingInfo {
|
|
369
370
|
meetingId: string;
|
|
370
371
|
callUri: string;
|
|
371
|
-
|
|
372
|
+
callNumber: string;
|
|
372
373
|
remoteUri: string;
|
|
373
374
|
}
|
|
374
375
|
/**
|
|
@@ -452,19 +453,25 @@ export interface IHttpConfig {
|
|
|
452
453
|
*
|
|
453
454
|
* 此信息是由业务层提供网关配置
|
|
454
455
|
*/
|
|
455
|
-
export interface LoginTokenInfo extends IToken {
|
|
456
|
-
clientId: string;
|
|
457
|
-
clientSecret: string;
|
|
456
|
+
export interface LoginTokenInfo extends IToken, Partial<ClientInfoConfig> {
|
|
458
457
|
}
|
|
459
458
|
/**
|
|
460
|
-
*
|
|
459
|
+
* 呼叫号码的云会议室属性配置
|
|
461
460
|
*
|
|
462
|
-
* @property {
|
|
463
|
-
* @property { WatermarkRange } watermarkRange -
|
|
461
|
+
* @property { WatermarkStatus } watermark - 是否开启水印
|
|
462
|
+
* @property { WatermarkRange } watermarkRange - 水印配置范围,无值,则默认共享内容叠加水印
|
|
463
|
+
* @property { string } displayConfNo - 显示的会议号
|
|
464
|
+
* @property { string } inoutReminder - 是否设置了出入会提醒
|
|
465
|
+
* @property { string } shareChatContentPermission - 聊天内容分享权限配置
|
|
466
|
+
* @property { string } watermarkContent 共享时叠加水印内容
|
|
464
467
|
*/
|
|
465
468
|
export interface IConfAuxProperties {
|
|
466
|
-
|
|
467
|
-
watermarkRange
|
|
469
|
+
watermark?: WatermarkStatus;
|
|
470
|
+
watermarkRange?: WatermarkRange;
|
|
471
|
+
displayConfNo?: string;
|
|
472
|
+
inoutReminder?: string;
|
|
473
|
+
shareChatContentPermission?: string;
|
|
474
|
+
watermarkContent?: string;
|
|
468
475
|
}
|
|
469
476
|
/**
|
|
470
477
|
* 会控相关信息
|
|
@@ -664,6 +671,8 @@ export declare enum ConferenceMode {
|
|
|
664
671
|
* @property { IGroupInfo[] } groupInfoList - 分组会议信息
|
|
665
672
|
* @property { ConferenceMode } conferenceMode - 会议模式
|
|
666
673
|
* @property { string } customizedLayout - 轮询多画面控制Json字符串
|
|
674
|
+
* @property { boolean } whiteboardIsDisabled - 白板权限
|
|
675
|
+
* @property { boolean } annotationIsDisabled - 批注权限
|
|
667
676
|
*/
|
|
668
677
|
export interface IMeetingControl {
|
|
669
678
|
callIndex: number;
|
|
@@ -680,6 +689,8 @@ export interface IMeetingControl {
|
|
|
680
689
|
groupInfoList: IGroupInfo[];
|
|
681
690
|
conferenceMode: ConferenceMode;
|
|
682
691
|
customizedLayout: string;
|
|
692
|
+
whiteboardIsDisabled?: boolean;
|
|
693
|
+
annotationIsDisabled?: boolean;
|
|
683
694
|
}
|
|
684
695
|
/**
|
|
685
696
|
* 会议变动消息
|
|
@@ -1293,44 +1304,6 @@ export interface IStateParams {
|
|
|
1293
1304
|
eventName: StateEventName;
|
|
1294
1305
|
params?: Object;
|
|
1295
1306
|
}
|
|
1296
|
-
/**
|
|
1297
|
-
* 截图参数
|
|
1298
|
-
*
|
|
1299
|
-
* @property { string } id - 参会者Layout Id,通过layout事件列表获取
|
|
1300
|
-
* @property { string } imageType - 图片格式, 默认'image/png'
|
|
1301
|
-
* @property { number } compressLevel - 图片质量,0-1
|
|
1302
|
-
*/
|
|
1303
|
-
export interface SnapshotParams {
|
|
1304
|
-
id: string;
|
|
1305
|
-
imageType?: string;
|
|
1306
|
-
compressLevel?: number;
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* canvas绘制video参数
|
|
1310
|
-
*
|
|
1311
|
-
* @property { boolean } isMirror - 是否镜像显示
|
|
1312
|
-
* @property { number } rotate - 是否旋转
|
|
1313
|
-
* @property { string } imageType - 图片格式, 默认'image/png'
|
|
1314
|
-
* @property { number } compressLevel - 图片质量,0-1
|
|
1315
|
-
*/
|
|
1316
|
-
export interface SnapshotOptions {
|
|
1317
|
-
isMirror?: boolean;
|
|
1318
|
-
rotate?: number;
|
|
1319
|
-
imageType?: string;
|
|
1320
|
-
compressLevel?: number;
|
|
1321
|
-
}
|
|
1322
|
-
/**
|
|
1323
|
-
* 截图结果
|
|
1324
|
-
*
|
|
1325
|
-
* @property { string } dataURL - 图片数据,Base64字符串
|
|
1326
|
-
* @property { number } width - 图片的宽度
|
|
1327
|
-
* @property { number } height - 图片的高度
|
|
1328
|
-
*/
|
|
1329
|
-
export interface SnapshotResult {
|
|
1330
|
-
dataURL: string;
|
|
1331
|
-
width: number;
|
|
1332
|
-
height: number;
|
|
1333
|
-
}
|
|
1334
1307
|
/**
|
|
1335
1308
|
* 本地视频渲染参数
|
|
1336
1309
|
*
|
|
@@ -1349,3 +1322,25 @@ export interface IVideoProfile {
|
|
|
1349
1322
|
maxResolution?: StreamResolution;
|
|
1350
1323
|
maxFrameRate?: StreamFrameRate;
|
|
1351
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* 是否接收会议中的远端音频
|
|
1327
|
+
*
|
|
1328
|
+
* @property { boolean } contentAudioMute - 可选,是否禁止接收共享内容的声音, 默认false
|
|
1329
|
+
* @property { boolean } peopleAudioMute - 可选,是否禁止接收people的声音,默认false
|
|
1330
|
+
*/
|
|
1331
|
+
export interface XYWebRxAudioStatus {
|
|
1332
|
+
contentAudioMute?: boolean;
|
|
1333
|
+
peopleAudioMute?: boolean;
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Client相关信息
|
|
1337
|
+
*
|
|
1338
|
+
* @property { string } clientId - 网关校验
|
|
1339
|
+
* @property { string } clientSecret - 网关密钥
|
|
1340
|
+
* @property { string } extId - 企业ID
|
|
1341
|
+
*/
|
|
1342
|
+
export interface ClientInfoConfig {
|
|
1343
|
+
clientId: string;
|
|
1344
|
+
clientSecret: string;
|
|
1345
|
+
extId: string;
|
|
1346
|
+
}
|
|
@@ -31,13 +31,15 @@ export * from '../main/render/videoManager.type';
|
|
|
31
31
|
export * from '../main/layout/index.type';
|
|
32
32
|
export * from '../main/device/index.type';
|
|
33
33
|
export * from '../main/helper/index.type';
|
|
34
|
+
export * from '../main/auth/index.type';
|
|
35
|
+
export * from '../main/client/index.type';
|
|
36
|
+
export * from '../main/peer/index.type';
|
|
34
37
|
export * from '../interface/baseModule.type';
|
|
35
38
|
export * from '../interface/clientInterface.type';
|
|
36
39
|
export * from '../interface/event.type';
|
|
37
40
|
export * from '../interface/contentTrackInterface.type';
|
|
38
41
|
export * from '../interface/videoAudioTrackInterface.type';
|
|
39
|
-
export * from '../tools/detectStream/index.type';
|
|
40
|
-
export * from '../tools/detectTool/index.type';
|
|
41
42
|
export * from '../feature/edu/index.type';
|
|
42
43
|
export * from '../feature/speaker/index.type';
|
|
43
|
-
export * from '../
|
|
44
|
+
export * from '../feature/query/index.type';
|
|
45
|
+
export * from '../feature/artboard/index.type';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ExternalTemplateConfig, ILayout, IRoster } from './index';
|
|
2
1
|
import { StreamResolutionLevel, VideoQuality } from './stream';
|
|
2
|
+
import { ExternalTemplateConfig, ILayout, IRoster } from './index';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Layout List数据,支持画面重复渲染
|
|
5
6
|
*
|
|
@@ -85,6 +86,7 @@ export type ITemplateObj = {
|
|
|
85
86
|
type?: TemplateType;
|
|
86
87
|
config?: ExternalTemplateConfig;
|
|
87
88
|
calluri?: string;
|
|
89
|
+
gap?: Gap[];
|
|
88
90
|
};
|
|
89
91
|
/**
|
|
90
92
|
* 模版信息
|
|
@@ -177,10 +179,12 @@ export interface FocusViewConfig {
|
|
|
177
179
|
*
|
|
178
180
|
* @property { boolean } isForceSharedLayout - 本地共享布局是否强制宫格布局
|
|
179
181
|
* @property { number } localSharedMaxViewCount - 本地共享时显示的最大画面数量
|
|
182
|
+
* @property { number } layoutGap - 布局间距,默认:1,代表1px
|
|
180
183
|
*/
|
|
181
184
|
export interface LayoutConfig {
|
|
182
185
|
isForceSharedLayout?: boolean;
|
|
183
186
|
localSharedMaxViewCount?: number;
|
|
187
|
+
layoutGap?: number;
|
|
184
188
|
}
|
|
185
189
|
/**
|
|
186
190
|
* 主画面来源
|
|
@@ -250,3 +254,13 @@ export interface ContentOnholdInfo {
|
|
|
250
254
|
audioTrackId: string;
|
|
251
255
|
contentUrl: string;
|
|
252
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* 模版间距
|
|
259
|
+
*
|
|
260
|
+
* @param OFF 0 - 关闭
|
|
261
|
+
* @param ON 1 - 开启
|
|
262
|
+
*/
|
|
263
|
+
export declare enum Gap {
|
|
264
|
+
OFF = 0,
|
|
265
|
+
ON = 1
|
|
266
|
+
}
|
|
@@ -67,7 +67,7 @@ export type TLogLevel = `${LogLevel}`;
|
|
|
67
67
|
* @param { number } tableCount - 可选,表的数量,默认值是1
|
|
68
68
|
* @param { number } tableIndex - 可选,当前表的索引,默认值是1
|
|
69
69
|
* @param { string } schema - 可选,表字段,默认值是'++id,t,c'
|
|
70
|
-
* @param { number } maxSize - 可选,当前数据表最大存储长度,默认值是
|
|
70
|
+
* @param { number } maxSize - 可选,当前数据表最大存储长度,默认值是100000(10万条数据)
|
|
71
71
|
* @param { number } detectTimer - 可选,多久检测一次表的最大长度,单位ms,默认值是300000(5分钟)
|
|
72
72
|
* @param { string[] } deleteDBNames - 可选,需要删除的历史数据库名,默认值是[]
|
|
73
73
|
* @param { boolean } isUpdateVersion - 可选,是否需要更新表版本(历史表都将被删除,避免错误)
|
|
@@ -92,11 +92,6 @@ export interface ILoggerConfig {
|
|
|
92
92
|
clearOffset?: number;
|
|
93
93
|
clearLimit?: number;
|
|
94
94
|
}
|
|
95
|
-
/**
|
|
96
|
-
* 数据库操作配置
|
|
97
|
-
*/
|
|
98
|
-
export interface IDBManagerConfig extends ILoggerConfig {
|
|
99
|
-
}
|
|
100
95
|
/**
|
|
101
96
|
* 缓存数据表配置
|
|
102
97
|
*/
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meeting Lib Type Defined
|
|
3
|
-
*
|
|
4
|
-
* Created at : 2022-10-27 18:13:24
|
|
5
|
-
* Last modified : 2024-06-05 11:07:16
|
|
6
|
-
*/
|
|
7
|
-
import { LayoutAvatarType } from './index';
|
|
8
|
-
import { ILoginInfo } from './client';
|
|
9
1
|
import { StreamFrameRate, StreamResolution } from './stream';
|
|
2
|
+
import { ILoginInfo } from './client';
|
|
3
|
+
import { LayoutAvatarType } from './index';
|
|
4
|
+
|
|
10
5
|
/**
|
|
11
6
|
* 水印范围
|
|
12
7
|
*
|
|
@@ -130,12 +125,28 @@ export interface IMediaConfigParam {
|
|
|
130
125
|
/**
|
|
131
126
|
* 企业配置信息
|
|
132
127
|
*
|
|
133
|
-
* @property { LayoutAvatarType } userAvatarMode 头像配置 0:名称头像(默认), 1: 人物头像
|
|
134
|
-
* @property { boolean }
|
|
128
|
+
* @property { LayoutAvatarType } userAvatarMode - 头像配置 0:名称头像(默认), 1: 人物头像
|
|
129
|
+
* @property { boolean } showDepartment - 显示组织
|
|
130
|
+
* @property { boolean } showDepartmentAndTitle - 显示组织和职务
|
|
131
|
+
*
|
|
132
|
+
* 备注:其他开关暂时未使用到
|
|
135
133
|
*/
|
|
136
134
|
export interface IEnterpriseConfig {
|
|
137
135
|
userAvatarMode?: LayoutAvatarType;
|
|
136
|
+
showDepartment?: boolean;
|
|
137
|
+
showDepartmentAndTitle?: boolean;
|
|
138
|
+
shareScreenshot?: boolean;
|
|
139
|
+
shareMaxNumSetting?: boolean;
|
|
140
|
+
openTempAccount?: boolean;
|
|
141
|
+
multipleSharedCount?: number;
|
|
142
|
+
enbaleMultipleShared?: boolean;
|
|
143
|
+
enableVodShare?: boolean;
|
|
144
|
+
enableMonitor?: boolean;
|
|
145
|
+
enableModifyPhone?: boolean;
|
|
146
|
+
enableEnterpriseMemberInvatition?: boolean;
|
|
147
|
+
enableApplySpeak?: boolean;
|
|
138
148
|
disableTranscriptionEng?: boolean;
|
|
149
|
+
aiDenoise?: boolean;
|
|
139
150
|
}
|
|
140
151
|
/**
|
|
141
152
|
* 签到参数
|
|
@@ -282,6 +293,7 @@ export interface CopyWriting {
|
|
|
282
293
|
* @property { string } meetingId - 会议ID
|
|
283
294
|
* @property { PROCESS_TYPE } processType - 互动工具业务类型:签到 答题 投票 评价
|
|
284
295
|
* @property { string } url - 签到url
|
|
296
|
+
* @property { string } urlPropv3 - 通过此值获取签到对应的接口
|
|
285
297
|
* @property { string } webViewUrl - h5页面url
|
|
286
298
|
* @property { Copywriting } copywriting - 弹窗内容、左侧顶部状态栏内容
|
|
287
299
|
*/
|
|
@@ -300,6 +312,7 @@ export interface InteractiveToolInfo {
|
|
|
300
312
|
supportFace?: false;
|
|
301
313
|
supportScan?: true;
|
|
302
314
|
url?: string;
|
|
315
|
+
urlPropv3?: string;
|
|
303
316
|
urlProp?: string;
|
|
304
317
|
webViewUrl?: string;
|
|
305
318
|
webViewUrlProp?: string;
|
|
@@ -327,6 +340,20 @@ export interface ConferenceProperties {
|
|
|
327
340
|
enableContentLive: boolean;
|
|
328
341
|
enableContentLiveOnHold: boolean;
|
|
329
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* 会议室通用配置
|
|
345
|
+
*
|
|
346
|
+
* @property { string } displayNum - 显示号码
|
|
347
|
+
* @property { string } mpvc - 点对点和多点的临时会议室号
|
|
348
|
+
* @property { string } confAuxProperties - 云会议室属性配置
|
|
349
|
+
* @property { IWaitingRoomProps } waitingRoomProps - 等候室属性配置
|
|
350
|
+
*/
|
|
351
|
+
export interface ConferenceCommon {
|
|
352
|
+
displayNum?: string;
|
|
353
|
+
mpvc?: string;
|
|
354
|
+
confAuxProperties?: string;
|
|
355
|
+
waitingRoomProps?: IWaitingRoomProps;
|
|
356
|
+
}
|
|
330
357
|
/**
|
|
331
358
|
* 是否是联席主持人
|
|
332
359
|
*
|
|
@@ -361,30 +388,93 @@ export declare enum EnableRename {
|
|
|
361
388
|
ON = "on",
|
|
362
389
|
OFF = "off"
|
|
363
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* 是否有权限
|
|
393
|
+
*
|
|
394
|
+
* @param ON - 是
|
|
395
|
+
* @param OFF - 否
|
|
396
|
+
*/
|
|
397
|
+
export declare enum XYNotificationStatus {
|
|
398
|
+
ON = "on",
|
|
399
|
+
OFF = "off",
|
|
400
|
+
NONE = "none"
|
|
401
|
+
}
|
|
364
402
|
/**
|
|
365
403
|
* 信令上报的消息
|
|
366
404
|
*
|
|
367
|
-
* @property { CoChair } coChair -
|
|
368
|
-
* @property { Host } host -
|
|
369
|
-
* @property { EnableRename } enableRename -
|
|
370
|
-
* @property {
|
|
405
|
+
* @property { CoChair } coChair - 是否是联席主持人
|
|
406
|
+
* @property { Host } host - 是否是主持人
|
|
407
|
+
* @property { EnableRename } enableRename - 是否有改名权限
|
|
408
|
+
* @property { XYNotificationStatus } newImStatus - 是否有聊天权限
|
|
409
|
+
* @property { XYNotificationStatus } waiterChatToHost - 是否允许私聊主持人
|
|
410
|
+
* @property { string } meetingId - 会议ID
|
|
371
411
|
*/
|
|
372
412
|
export interface XYNotificationContent {
|
|
373
413
|
coChair?: CoChair;
|
|
374
414
|
host?: Host;
|
|
375
415
|
enableRename?: EnableRename;
|
|
416
|
+
newImStatus?: XYNotificationStatus;
|
|
417
|
+
waiterChatToHost?: XYNotificationStatus;
|
|
376
418
|
meetingId?: string;
|
|
377
419
|
}
|
|
378
420
|
/**
|
|
379
|
-
*
|
|
421
|
+
* 联席主持人/主持人/改名权限/聊天权限 等消息
|
|
380
422
|
*
|
|
423
|
+
* @property { XYNotificationType } type - 消息类型
|
|
381
424
|
* @property { number } subType - 消息类型
|
|
382
425
|
* @property { XYNotificationContent } content - 消息详细内容
|
|
383
426
|
* @property { string } requestId - 消息ID
|
|
384
427
|
*/
|
|
385
428
|
export interface XYNotification {
|
|
429
|
+
type: XYNotificationType;
|
|
386
430
|
subType: number;
|
|
387
431
|
content: XYNotificationContent;
|
|
388
432
|
requestId: string;
|
|
389
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* 消息类型
|
|
436
|
+
*
|
|
437
|
+
* @param CO_CHAIR - 联席主持人
|
|
438
|
+
* @param HOST - 主持人
|
|
439
|
+
* @param RENAME - 改名
|
|
440
|
+
* @param IM - 聊天
|
|
441
|
+
*/
|
|
442
|
+
export declare enum XYNotificationType {
|
|
443
|
+
CO_CHAIR = "CO_CHAIR",
|
|
444
|
+
HOST = "HOST",
|
|
445
|
+
RENAME = "RENAME",
|
|
446
|
+
IM = "IM"
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* IM 聊天消息
|
|
450
|
+
*
|
|
451
|
+
* @property { string } from - 发送人
|
|
452
|
+
* @property { string } to - 接收人
|
|
453
|
+
* @property { number } msgType - 消息类型
|
|
454
|
+
* @property { number } chatType - 聊天类型
|
|
455
|
+
* @property { string } content - 消息内容
|
|
456
|
+
* @property { number } sendtime - 消息发送时间
|
|
457
|
+
* @property { string } msgId - 消息ID
|
|
458
|
+
* @property { number } sequence - 消息序号
|
|
459
|
+
* @property { string } fromName - 发送人名称
|
|
460
|
+
* @property { string } avatar - 发送人头像
|
|
461
|
+
* @property { string } toName - 接收人名称
|
|
462
|
+
* @property { boolean } fromLocal - 是否是本地发送
|
|
463
|
+
* @property { boolean } toAll - 是否是全体发送
|
|
464
|
+
*/
|
|
465
|
+
export interface XYIMMsg {
|
|
466
|
+
from: string;
|
|
467
|
+
to: string;
|
|
468
|
+
msgType: number;
|
|
469
|
+
chatType: number;
|
|
470
|
+
content: string;
|
|
471
|
+
sendtime: number;
|
|
472
|
+
msgId: string;
|
|
473
|
+
sequence: number;
|
|
474
|
+
fromName: string;
|
|
475
|
+
avatar: string;
|
|
476
|
+
toName: string;
|
|
477
|
+
fromLocal?: boolean;
|
|
478
|
+
toAll?: boolean;
|
|
479
|
+
}
|
|
390
480
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FACING_MODE_LIST } from '../enum/index';
|
|
2
|
-
import { IReturnResult } from './base';
|
|
3
|
-
import { ContentMode } from './client';
|
|
4
1
|
import { XYDisplaySurface } from './track';
|
|
2
|
+
import { ContentMode } from './client';
|
|
3
|
+
import { IReturnResult } from './base';
|
|
4
|
+
import { FACING_MODE_LIST } from '../enum/index';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* 设备类型枚举列表
|
|
7
8
|
*
|
|
@@ -668,8 +669,6 @@ export interface ICreateContentConfig {
|
|
|
668
669
|
export interface IFrameRateConfig {
|
|
669
670
|
frameRate?: ConstrainDouble;
|
|
670
671
|
}
|
|
671
|
-
export interface ISteamConfig {
|
|
672
|
-
}
|
|
673
672
|
/**
|
|
674
673
|
* 切换设备方法额外配置
|
|
675
674
|
*
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* long description for the file
|
|
3
|
-
*
|
|
4
|
-
* @summary short description for the file
|
|
5
|
-
* @author JingHui Luo <luojinghui424@gmail.com>
|
|
6
|
-
*
|
|
7
|
-
* Created at : 2024-05-13 14:24:13
|
|
8
|
-
* Last modified : 2024-05-13 20:00:27
|
|
9
|
-
*/
|
|
10
1
|
import { StreamResolution } from './stream';
|
|
2
|
+
|
|
11
3
|
/**
|
|
12
4
|
* 创建自定义Track配置参数
|
|
13
5
|
*
|