@xylink/xy-rtc-sdk 3.9.11-private.6 → 4.0.0
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 +36 -13
- package/lib/action/index.d.ts +106 -36
- package/lib/enum/analyser.d.ts +7 -0
- package/lib/enum/client.d.ts +8 -2
- package/lib/enum/constraints.d.ts +51 -0
- package/lib/enum/device.d.ts +28 -0
- package/lib/enum/errorCode.d.ts +8 -2
- package/lib/enum/i18n.d.ts +6 -0
- package/lib/enum/index.d.ts +90 -7
- package/lib/enum/meeting.d.ts +4 -0
- package/lib/enum/polling.d.ts +2 -11
- package/lib/feature/customMessage/index.d.ts +29 -0
- package/lib/feature/edu/index.d.ts +34 -0
- package/lib/feature/edu/index.type.d.ts +29 -0
- package/lib/feature/index.d.ts +3 -0
- package/lib/feature/speaker/index.d.ts +81 -0
- package/lib/feature/speaker/index.type.d.ts +17 -0
- package/lib/index.d.ts +84 -31
- package/lib/interface/baseModule.type.d.ts +9 -0
- package/lib/interface/clientInterface.type.d.ts +128 -0
- package/lib/interface/contentTrackInterface.type.d.ts +15 -0
- package/lib/interface/event.type.d.ts +444 -0
- package/lib/interface/videoAudioTrackInterface.type.d.ts +17 -0
- package/lib/main/ability/const.d.ts +5 -0
- package/lib/main/ability/index.d.ts +37 -0
- package/lib/main/{iauth.d.ts → auth/index.d.ts} +34 -26
- package/lib/main/client.d.ts +643 -637
- package/lib/main/clientBase.d.ts +40 -0
- package/lib/main/clientState.d.ts +56 -0
- package/lib/main/device/index.d.ts +272 -0
- package/lib/main/device/index.type.d.ts +204 -0
- package/lib/main/helper/index.d.ts +118 -0
- package/lib/main/helper/index.type.d.ts +12 -0
- package/lib/main/layout/index.d.ts +74 -108
- package/lib/main/layout/index.type.d.ts +282 -0
- package/lib/main/layout/polling.d.ts +17 -13
- package/lib/main/layout/state.d.ts +163 -0
- package/lib/main/layout/template.d.ts +3 -3
- package/lib/main/media/index.d.ts +177 -0
- package/lib/main/media/index.type.d.ts +29 -0
- package/lib/main/meeting/control.d.ts +107 -0
- package/lib/main/meeting/control.type.d.ts +24 -0
- package/lib/main/{meeting.d.ts → meeting/index.d.ts} +58 -28
- package/lib/main/meeting/verify.d.ts +70 -0
- package/lib/main/meeting/verify.type.d.ts +12 -0
- package/lib/main/peer.d.ts +67 -19
- package/lib/main/plugin/index.d.ts +28 -0
- package/lib/{tools/quality.d.ts → main/quality/index.d.ts} +2 -2
- package/lib/{tools → main/quality}/quality.worker.d.ts +1 -1
- package/lib/main/{qualityManager.d.ts → quality/report.d.ts} +11 -5
- package/lib/main/render/index.d.ts +116 -0
- package/lib/main/render/index.type.d.ts +36 -0
- package/lib/main/render/videoManager.d.ts +190 -0
- package/lib/main/render/videoManager.type.d.ts +66 -0
- package/lib/main/roster/index.d.ts +39 -0
- package/lib/main/server/index.d.ts +79 -0
- package/lib/main/server/index.type.d.ts +21 -0
- package/lib/main/signal/index.d.ts +15 -0
- package/lib/main/socket/index.d.ts +95 -0
- package/lib/main/stream/index.d.ts +182 -0
- package/lib/main/track/baseTrack.d.ts +178 -0
- package/lib/main/track/contentTrack.d.ts +168 -0
- package/lib/main/track/customContentTrack.d.ts +18 -0
- package/lib/main/track/customVideoAudioTrack.d.ts +18 -0
- package/lib/main/track/helper.d.ts +53 -0
- package/lib/main/track/videoAudioCapture.d.ts +90 -0
- package/lib/main/track/videoAudioTrack.d.ts +273 -0
- package/lib/main/vom/index.d.ts +44 -0
- package/lib/main/vom/index.type.d.ts +1 -0
- package/lib/tools/analyser.d.ts +53 -0
- package/lib/tools/analyserManager.d.ts +55 -0
- package/lib/tools/dbManager.d.ts +12 -1
- package/lib/tools/{browser.d.ts → detectBrowser/index.d.ts} +53 -5
- package/lib/tools/detectStream/index.d.ts +84 -0
- package/lib/tools/detectStream/index.type.d.ts +56 -0
- package/lib/tools/detectTool/index.d.ts +191 -0
- package/lib/tools/detectTool/index.type.d.ts +51 -0
- package/lib/tools/emitter.d.ts +27 -6
- package/lib/tools/enum.d.ts +1 -1
- package/lib/tools/httpClient.d.ts +23 -6
- package/lib/tools/i18n.d.ts +1 -1
- package/lib/tools/index.d.ts +5 -5
- package/lib/tools/{logger.d.ts → log/logger.d.ts} +59 -29
- package/lib/tools/{logger.worker.d.ts → log/logger.worker.d.ts} +1 -1
- package/lib/tools/log/loggerManager.d.ts +70 -0
- package/lib/tools/pressure/index.d.ts +33 -0
- package/lib/tools/pressure/index.type.d.ts +22 -0
- package/lib/tools/promiseQueue.d.ts +51 -0
- package/lib/tools/queue.d.ts +12 -15
- package/lib/tools/resize.d.ts +65 -0
- package/lib/tools/snapshot.d.ts +31 -0
- package/lib/tools/socket.d.ts +109 -32
- package/lib/tools/template/index.d.ts +3 -3
- package/lib/tools/template/mobile.d.ts +1 -1
- package/lib/tools/template/polling.d.ts +1 -1
- package/lib/tools/utils.d.ts +22 -19
- package/lib/tools/verify.d.ts +7 -0
- package/lib/type/ability.d.ts +25 -0
- package/lib/type/analyser.d.ts +43 -0
- package/lib/type/{iauth.d.ts → auth.d.ts} +22 -29
- package/lib/type/base.d.ts +41 -33
- package/lib/type/capture.d.ts +9 -0
- package/lib/type/client.d.ts +404 -498
- package/lib/type/index.d.ts +26 -2
- package/lib/type/layout.d.ts +25 -49
- package/lib/type/logger.d.ts +37 -12
- package/lib/type/meeting.d.ts +266 -27
- package/lib/type/peer.d.ts +24 -1
- package/lib/type/polling.d.ts +1 -49
- package/lib/type/quality.d.ts +16 -6
- package/lib/type/socket.d.ts +42 -0
- package/lib/type/stream.d.ts +154 -116
- package/lib/type/track.d.ts +139 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +11 -3
- package/lib/enum/contraints.d.ts +0 -50
- package/lib/main/deviceManager.d.ts +0 -185
- package/lib/main/helper.d.ts +0 -79
- package/lib/main/stream.d.ts +0 -396
- package/lib/main/videoManager.d.ts +0 -57
- package/lib/tools/audioLevel.d.ts +0 -23
- package/lib/tools/detect.d.ts +0 -43
- package/lib/type/device.d.ts +0 -83
package/lib/type/index.d.ts
CHANGED
|
@@ -8,12 +8,36 @@
|
|
|
8
8
|
export * from './base';
|
|
9
9
|
export * from './client';
|
|
10
10
|
export * from './stream';
|
|
11
|
-
export * from './device';
|
|
12
11
|
export * from './action';
|
|
13
12
|
export * from './meeting';
|
|
14
13
|
export * from './layout';
|
|
15
14
|
export * from './quality';
|
|
16
15
|
export * from './peer';
|
|
17
16
|
export * from './logger';
|
|
18
|
-
export * from './
|
|
17
|
+
export * from './analyser';
|
|
18
|
+
export * from './ability';
|
|
19
|
+
export * from './track';
|
|
20
|
+
export * from './capture';
|
|
21
|
+
export * from './auth';
|
|
19
22
|
export * from './polling';
|
|
23
|
+
export * from './socket';
|
|
24
|
+
export * from '../main/meeting/control.type';
|
|
25
|
+
export * from '../main/meeting/verify.type';
|
|
26
|
+
export * from '../main/server/index.type';
|
|
27
|
+
export * from '../main/media/index.type';
|
|
28
|
+
export * from '../main/media/index.type';
|
|
29
|
+
export * from '../main/render/index.type';
|
|
30
|
+
export * from '../main/render/videoManager.type';
|
|
31
|
+
export * from '../main/layout/index.type';
|
|
32
|
+
export * from '../main/device/index.type';
|
|
33
|
+
export * from '../main/helper/index.type';
|
|
34
|
+
export * from '../interface/baseModule.type';
|
|
35
|
+
export * from '../interface/clientInterface.type';
|
|
36
|
+
export * from '../interface/event.type';
|
|
37
|
+
export * from '../interface/contentTrackInterface.type';
|
|
38
|
+
export * from '../interface/videoAudioTrackInterface.type';
|
|
39
|
+
export * from '../tools/detectStream/index.type';
|
|
40
|
+
export * from '../tools/detectTool/index.type';
|
|
41
|
+
export * from '../feature/edu/index.type';
|
|
42
|
+
export * from '../feature/speaker/index.type';
|
|
43
|
+
export * from '../tools/resize';
|
package/lib/type/layout.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import { ILayout, IRoster } from './
|
|
1
|
+
import { ExternalTemplateConfig, ILayout, IRoster } from './index';
|
|
2
2
|
import { StreamResolutionLevel, VideoQuality } from './stream';
|
|
3
|
-
/**
|
|
4
|
-
* Layout头像类型
|
|
5
|
-
*
|
|
6
|
-
* @param NONE -1 - 无头像
|
|
7
|
-
* @param TEXT 0 - 名称头像
|
|
8
|
-
* @param IMAGE 1 - 人物头像
|
|
9
|
-
*/
|
|
10
|
-
export declare enum LayoutAvatarType {
|
|
11
|
-
NONE = -1,
|
|
12
|
-
TEXT = 0,
|
|
13
|
-
IMAGE = 1
|
|
14
|
-
}
|
|
15
3
|
/**
|
|
16
4
|
* Layout List数据,支持画面重复渲染
|
|
17
5
|
*
|
|
@@ -20,7 +8,7 @@ export declare enum LayoutAvatarType {
|
|
|
20
8
|
*/
|
|
21
9
|
export type TLayoutMap = Map<string, ILayout[]>;
|
|
22
10
|
/**
|
|
23
|
-
*
|
|
11
|
+
* 布局模式类型
|
|
24
12
|
*/
|
|
25
13
|
export type IMode = `${TemplateMode | ContentTemplateMode}`;
|
|
26
14
|
/**
|
|
@@ -77,22 +65,6 @@ export interface ITemplateResolution {
|
|
|
77
65
|
low: StreamResolutionLevel;
|
|
78
66
|
high?: StreamResolutionLevel;
|
|
79
67
|
}
|
|
80
|
-
/**
|
|
81
|
-
* 模版额外配置
|
|
82
|
-
*
|
|
83
|
-
* @property { string } id - templateId (模版名称_画面数量_第几个画面)
|
|
84
|
-
* @property { boolean } isPIP - 是否在画中画
|
|
85
|
-
* @property { boolean } isRotate - 是否要适配旋转
|
|
86
|
-
* @property { number } zIndex - 层级
|
|
87
|
-
* @property { Record<string, string | number> } customStyle - 自定义样式
|
|
88
|
-
*/
|
|
89
|
-
export interface ExternalTemplateConfig {
|
|
90
|
-
id?: string;
|
|
91
|
-
isPIP?: boolean;
|
|
92
|
-
isRotate?: boolean;
|
|
93
|
-
zIndex?: number;
|
|
94
|
-
customStyle?: Record<string, string | number>;
|
|
95
|
-
}
|
|
96
68
|
/**
|
|
97
69
|
* Layout模版定义
|
|
98
70
|
*
|
|
@@ -142,7 +114,7 @@ export interface TemplateInfo {
|
|
|
142
114
|
* 获取模版配置参数
|
|
143
115
|
*
|
|
144
116
|
* @param { TemplateMode | ContentTemplateMode } modeType - 模版类型
|
|
145
|
-
* @param { number }
|
|
117
|
+
* @param { number } templateCount - 模版对应画面数量
|
|
146
118
|
* @param { number } participantCount - 会中总人数
|
|
147
119
|
* @param { boolean } isEnableHideLocalView - 是否隐藏本地画面模式
|
|
148
120
|
* @param { boolean } isChairmanMode - 是否是主会场模式
|
|
@@ -153,7 +125,7 @@ export interface TemplateInfo {
|
|
|
153
125
|
*/
|
|
154
126
|
export interface TemplateParams {
|
|
155
127
|
modeType?: TemplateMode | ContentTemplateMode;
|
|
156
|
-
|
|
128
|
+
templateCount?: number;
|
|
157
129
|
participantCount?: number;
|
|
158
130
|
isEnableHideLocalView?: boolean;
|
|
159
131
|
isChairmanMode?: boolean;
|
|
@@ -163,7 +135,7 @@ export interface TemplateParams {
|
|
|
163
135
|
focusViewConfig?: FocusViewConfig;
|
|
164
136
|
}
|
|
165
137
|
/**
|
|
166
|
-
*
|
|
138
|
+
* 移动端布局方向
|
|
167
139
|
*
|
|
168
140
|
* @param NONE -1 - 默认布局(PC)
|
|
169
141
|
* @param MOBILE_HORIZONTAL 0 - 移动端横屏布局
|
|
@@ -200,18 +172,6 @@ export interface FocusViewConfig {
|
|
|
200
172
|
roster: IRoster | null;
|
|
201
173
|
kind?: FocusViewKind;
|
|
202
174
|
}
|
|
203
|
-
/**
|
|
204
|
-
* 需要管理员广播才能收看内容共享
|
|
205
|
-
*
|
|
206
|
-
* @property { boolean } is - 是否开启了指定内容广播
|
|
207
|
-
* @property { string } audioTrackId - 广播的audioTrackId
|
|
208
|
-
* @property { string } contentUrl - 广播的contentUrl
|
|
209
|
-
*/
|
|
210
|
-
export interface ContentOnholdInfo {
|
|
211
|
-
is: boolean;
|
|
212
|
-
audioTrackId: string;
|
|
213
|
-
contentUrl: string;
|
|
214
|
-
}
|
|
215
175
|
/**
|
|
216
176
|
* 布局相关配置
|
|
217
177
|
*
|
|
@@ -225,6 +185,7 @@ export interface LayoutConfig {
|
|
|
225
185
|
/**
|
|
226
186
|
* 主画面来源
|
|
227
187
|
*
|
|
188
|
+
* @param NONE '' - 默认:主会场模式
|
|
228
189
|
* @param MAIN_VENUE mainVenue - 主会场模式
|
|
229
190
|
* @param FOCUS_MODE focusMode - 焦点模式
|
|
230
191
|
*/
|
|
@@ -268,9 +229,24 @@ export interface LayoutState {
|
|
|
268
229
|
isPolling: boolean;
|
|
269
230
|
}
|
|
270
231
|
/**
|
|
271
|
-
*
|
|
232
|
+
* RosterId 分割信息
|
|
233
|
+
*
|
|
234
|
+
* @property { string } endpointId - 参会者callUri字段
|
|
235
|
+
* @property { string } mediagroupId - 多分组ID
|
|
236
|
+
*/
|
|
237
|
+
export interface IRosterIdInfo {
|
|
238
|
+
endpointId: string;
|
|
239
|
+
mediagroupId: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* 需要管理员广播才能收看内容共享
|
|
243
|
+
*
|
|
244
|
+
* @property { boolean } enableContentLiveOnHold - 是否开启了指定内容广播
|
|
245
|
+
* @property { string } audioTrackId - 广播的audioTrackId
|
|
246
|
+
* @property { string } contentUrl - 广播的contentUrl
|
|
272
247
|
*/
|
|
273
|
-
export interface
|
|
274
|
-
|
|
275
|
-
|
|
248
|
+
export interface ContentOnholdInfo {
|
|
249
|
+
enableContentLiveOnHold: boolean;
|
|
250
|
+
audioTrackId: string;
|
|
251
|
+
contentUrl: string;
|
|
276
252
|
}
|
package/lib/type/logger.d.ts
CHANGED
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
* @param DEBUG DEBUG - 调试信息
|
|
6
6
|
* @param WARN WARN - 警告信息
|
|
7
7
|
* @param ERROR ERROR - 错误信息
|
|
8
|
+
* @param FATAL FATAL - 致命错误信息
|
|
8
9
|
*/
|
|
9
10
|
export declare enum MessageKind {
|
|
10
11
|
LOG = "INFO",
|
|
11
12
|
DEBUG = "DEBUG",
|
|
12
13
|
WARN = "WARN",
|
|
13
|
-
ERROR = "ERROR"
|
|
14
|
+
ERROR = "ERROR",
|
|
15
|
+
FATAL = "FATAL"
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* WebWorker消息类型
|
|
@@ -20,13 +22,15 @@ export declare enum MessageKind {
|
|
|
20
22
|
* @param DESTROY - 销毁操作
|
|
21
23
|
* @param DOWNLOAD - 下载日志操作
|
|
22
24
|
* @param UPLOAD - 上传日志操作
|
|
25
|
+
* @param GET_DATA - 获取日志数据
|
|
23
26
|
*/
|
|
24
27
|
export declare enum LogOperateType {
|
|
25
28
|
LOGGER = "LOGGER",
|
|
26
29
|
INIT = "INIT",
|
|
27
30
|
DESTROY = "DESTROY",
|
|
28
31
|
DOWNLOAD = "DOWNLOAD",
|
|
29
|
-
UPLOAD = "UPLOAD"
|
|
32
|
+
UPLOAD = "UPLOAD",
|
|
33
|
+
GET_DATA = "GET_DATA"
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* 日志等级
|
|
@@ -57,16 +61,20 @@ export type TLogLevel = `${LogLevel}`;
|
|
|
57
61
|
/**
|
|
58
62
|
* 日志模块配置
|
|
59
63
|
*
|
|
60
|
-
* @param { string } dbName -
|
|
61
|
-
* @param {
|
|
62
|
-
* @param {
|
|
63
|
-
* @param { number } tableCount -
|
|
64
|
-
* @param { number } tableIndex -
|
|
65
|
-
* @param {
|
|
66
|
-
* @param { number }
|
|
67
|
-
* @param {
|
|
68
|
-
* @param {
|
|
69
|
-
* @param {
|
|
64
|
+
* @param { string } dbName - 必填,数据库名称,默认值是XYRTC_LOG
|
|
65
|
+
* @param { string } tableName - 必填,表名称,默认值是LOG
|
|
66
|
+
* @param { number } dbVersion - 可选,数据库版本,默认值是1
|
|
67
|
+
* @param { number } tableCount - 可选,表的数量,默认值是1
|
|
68
|
+
* @param { number } tableIndex - 可选,当前表的索引,默认值是1
|
|
69
|
+
* @param { string } schema - 可选,表字段,默认值是'++id,t,c'
|
|
70
|
+
* @param { number } maxSize - 可选,当前数据表最大存储长度,默认值是80000(8万条数据)
|
|
71
|
+
* @param { number } detectTimer - 可选,多久检测一次表的最大长度,单位ms,默认值是300000(5分钟)
|
|
72
|
+
* @param { string[] } deleteDBNames - 可选,需要删除的历史数据库名,默认值是[]
|
|
73
|
+
* @param { boolean } isUpdateVersion - 可选,是否需要更新表版本(历史表都将被删除,避免错误)
|
|
74
|
+
* @param { boolean } enableClearTable - 可选,是否清理表, 默认值是true,代表重新初始化时清空当前数据表
|
|
75
|
+
* @param { string } scope - 可选,配置日志Scope范围,例如配置为'APP',则所有日志显示为:[16:14:24 490][INFO][APP]xxxx
|
|
76
|
+
* @param { number } clearOffset - 可选,自动清理表数据的偏移值,正序排序,默认值:1000,即从第1000位开始,1000+limit长度的数据进行自动清理操作
|
|
77
|
+
* @param { number } clearLimit - 可选,自动清理表数据的数量限制,从offset开始,offset + limit长度为结束,默认值:11000
|
|
70
78
|
*/
|
|
71
79
|
export interface ILoggerConfig {
|
|
72
80
|
dbName: string;
|
|
@@ -80,6 +88,9 @@ export interface ILoggerConfig {
|
|
|
80
88
|
deleteDBNames?: string[];
|
|
81
89
|
isUpdateVersion?: boolean;
|
|
82
90
|
enableClearTable?: boolean;
|
|
91
|
+
scope?: string;
|
|
92
|
+
clearOffset?: number;
|
|
93
|
+
clearLimit?: number;
|
|
83
94
|
}
|
|
84
95
|
/**
|
|
85
96
|
* 数据库操作配置
|
|
@@ -110,3 +121,17 @@ export interface IWorkerData {
|
|
|
110
121
|
[key: string]: any;
|
|
111
122
|
} & ILoggerConfig;
|
|
112
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* 日志上传参数
|
|
126
|
+
*
|
|
127
|
+
* @param { string } name - 上传文件名
|
|
128
|
+
* @param { string } account - 上传账号
|
|
129
|
+
* @param { string } comments - 上传时备注信息
|
|
130
|
+
* @param { string } dbName - 日志库名称,默认不传,上传所有日志
|
|
131
|
+
*/
|
|
132
|
+
export interface UploadLogParams {
|
|
133
|
+
name?: string;
|
|
134
|
+
account?: string;
|
|
135
|
+
comments?: string;
|
|
136
|
+
dbName?: string;
|
|
137
|
+
}
|
package/lib/type/meeting.d.ts
CHANGED
|
@@ -2,16 +2,34 @@
|
|
|
2
2
|
* Meeting Lib Type Defined
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2022-10-27 18:13:24
|
|
5
|
-
* Last modified : 2024-
|
|
5
|
+
* Last modified : 2024-06-05 11:07:16
|
|
6
6
|
*/
|
|
7
|
+
import { LayoutAvatarType } from './index';
|
|
7
8
|
import { ILoginInfo } from './client';
|
|
8
|
-
import {
|
|
9
|
-
|
|
9
|
+
import { StreamFrameRate, StreamResolution } from './stream';
|
|
10
|
+
/**
|
|
11
|
+
* 水印范围
|
|
12
|
+
*
|
|
13
|
+
* @param { CONTENT } '0' - 共享内容叠加水印
|
|
14
|
+
* @param { ALL } '1' - 视频和共享内容叠加水印
|
|
15
|
+
*/
|
|
16
|
+
export declare enum WatermarkRange {
|
|
17
|
+
CONTENT = "0",
|
|
18
|
+
ALL = "1"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 水印状态,是否有水印
|
|
22
|
+
*/
|
|
23
|
+
export declare enum WatermarkStatus {
|
|
24
|
+
NONE = "0",
|
|
25
|
+
WITH = "1"
|
|
26
|
+
}
|
|
10
27
|
/**
|
|
11
28
|
* 呼叫号码的云会议室属性配置
|
|
12
29
|
*/
|
|
13
30
|
export interface IConfAuxPro {
|
|
14
|
-
watermark:
|
|
31
|
+
watermark: WatermarkStatus;
|
|
32
|
+
watermarkRange: WatermarkRange;
|
|
15
33
|
displayConfNo: string;
|
|
16
34
|
inoutReminder: string;
|
|
17
35
|
waitingRoomProp?: IWaitingRoomProps;
|
|
@@ -41,14 +59,16 @@ export interface IConfCallInfo {
|
|
|
41
59
|
* 个人云会议室信息
|
|
42
60
|
* 默认只保存了部分信息
|
|
43
61
|
*
|
|
44
|
-
* @property { string
|
|
45
|
-
* @property { string
|
|
46
|
-
* @property { string
|
|
62
|
+
* @property { string } meetingControlPassword - 会控密码
|
|
63
|
+
* @property { string } meetingNumber - 个人云会议室号码
|
|
64
|
+
* @property { string } password - 入会密码
|
|
65
|
+
* @property { string? } isMeetingOwner - 是否是会议室Owner
|
|
47
66
|
*/
|
|
48
67
|
export interface ICloudRoomConfig {
|
|
49
68
|
meetingControlPassword: string;
|
|
50
69
|
meetingNumber: string;
|
|
51
70
|
password: string;
|
|
71
|
+
isMeetingOwner?: boolean;
|
|
52
72
|
}
|
|
53
73
|
/**
|
|
54
74
|
* 用户和对应个人云会议室信息数据
|
|
@@ -56,23 +76,49 @@ export interface ICloudRoomConfig {
|
|
|
56
76
|
export interface IExportUserInfo extends ILoginInfo {
|
|
57
77
|
cloudRoomInfo: ICloudRoomConfig;
|
|
58
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* 会议上行和下行方向
|
|
81
|
+
*
|
|
82
|
+
* @property DOWNLINK - PEOPLE+CONTENT下行方向
|
|
83
|
+
* @property UPLINK - PEOPLE+CONTENT上行方向
|
|
84
|
+
* @property ALL - 上行+下行方向
|
|
85
|
+
* @property PEOPLE_DOWNLINK - PEOPLE下行方向
|
|
86
|
+
* @property PEOPLE_UPLINK - PEOPLE上行方向
|
|
87
|
+
* @property CONTENT_DOWNLINK - CONTENT下行方向
|
|
88
|
+
* @property CONTENT_UPLINK - CONTENT上行方向
|
|
89
|
+
*/
|
|
90
|
+
export declare enum MEETING_DIRECTION {
|
|
91
|
+
DOWNLINK = "DOWNLINK",
|
|
92
|
+
UPLINK = "UPLINK",
|
|
93
|
+
ALL = "ALL",
|
|
94
|
+
PEOPLE_DOWNLINK = "PEOPLE_DOWNLINK",
|
|
95
|
+
PEOPLE_UPLINK = "PEOPLE_UPLINK",
|
|
96
|
+
CONTENT_DOWNLINK = "CONTENT_DOWNLINK",
|
|
97
|
+
CONTENT_UPLINK = "CONTENT_UPLINK"
|
|
98
|
+
}
|
|
59
99
|
/**
|
|
60
100
|
* 媒体能力配置
|
|
61
101
|
*
|
|
62
|
-
* @property {
|
|
63
|
-
* @property {
|
|
64
|
-
* @property {
|
|
65
|
-
* @property {
|
|
66
|
-
* @property {
|
|
67
|
-
* @property {
|
|
102
|
+
* @property { StreamResolution } peopleRecResolution - 控制People接收分辨率
|
|
103
|
+
* @property { StreamResolution } peopleSendResolution - 控制People发送分辨率
|
|
104
|
+
* @property { StreamFrameRate } peopleRecFrameRate - 控制People接收帧率
|
|
105
|
+
* @property { StreamFrameRate } peopleSendFrameRate - 控制People发送帧率
|
|
106
|
+
* @property { StreamResolution } contentRecResolution - 控制Content发送分辨率
|
|
107
|
+
* @property { StreamResolution } contentSendResolution - 控制Content发送分辨率
|
|
108
|
+
* @property { number } rxBandwidth - 控制下行带宽,值类似:1920
|
|
109
|
+
* @property { number } pTxBandwidth - web节点People发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
|
|
110
|
+
* @property { number } cTxBandwidth - web节点Content发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
|
|
68
111
|
*/
|
|
69
112
|
export interface IMediaConfig {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
113
|
+
peopleRecResolution: StreamResolution;
|
|
114
|
+
peopleSendResolution: StreamResolution;
|
|
115
|
+
peopleRecFrameRate: StreamFrameRate;
|
|
116
|
+
peopleSendFrameRate: StreamFrameRate;
|
|
117
|
+
contentRecResolution: StreamResolution;
|
|
118
|
+
contentSendResolution: StreamResolution;
|
|
119
|
+
rxBandwidth: number;
|
|
120
|
+
pTxBandwidth: number;
|
|
121
|
+
cTxBandwidth: number;
|
|
76
122
|
}
|
|
77
123
|
/**
|
|
78
124
|
* 媒体能力配置 请求参数
|
|
@@ -85,9 +131,201 @@ export interface IMediaConfigParam {
|
|
|
85
131
|
* 企业配置信息
|
|
86
132
|
*
|
|
87
133
|
* @property { LayoutAvatarType } userAvatarMode 头像配置 0:名称头像(默认), 1: 人物头像
|
|
134
|
+
* @property { boolean } disableTranscriptionEng 禁用语音转写英文翻译,默认false
|
|
88
135
|
*/
|
|
89
136
|
export interface IEnterpriseConfig {
|
|
90
137
|
userAvatarMode?: LayoutAvatarType;
|
|
138
|
+
disableTranscriptionEng?: boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* 签到参数
|
|
142
|
+
*
|
|
143
|
+
* @property { string } questionnaireId - 业务ID
|
|
144
|
+
*/
|
|
145
|
+
export interface SignInParams {
|
|
146
|
+
questionnaireId: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 签到结果
|
|
150
|
+
*
|
|
151
|
+
* @property { boolean } success - 是否成功
|
|
152
|
+
* @property { string } status - 签到结果
|
|
153
|
+
* @property { string } data - 描述
|
|
154
|
+
*/
|
|
155
|
+
export interface SignInResult {
|
|
156
|
+
success: boolean;
|
|
157
|
+
status: string;
|
|
158
|
+
data: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 签到文案 详细内容
|
|
162
|
+
*
|
|
163
|
+
* @property { string } businessType - 业务类型
|
|
164
|
+
* @property { string } copyWritingCode - 文案编码
|
|
165
|
+
* @property { string } remark - 备注
|
|
166
|
+
* @property { string } content - 文案内容
|
|
167
|
+
* @property { string } picUrl - 图片地址
|
|
168
|
+
* @property { string } startVersion - 开始版本
|
|
169
|
+
* @property { number } createTime - 创建时间
|
|
170
|
+
* @property { number } updateTime - 更新时间
|
|
171
|
+
* @property { number } indexNo - 排序
|
|
172
|
+
* @property { string } enterpriseId - 企业id
|
|
173
|
+
* @property { boolean } custom - 是否自定义
|
|
174
|
+
*/
|
|
175
|
+
interface CopyWritingInfo {
|
|
176
|
+
businessType: string;
|
|
177
|
+
copyWritingCode: string;
|
|
178
|
+
remark: string;
|
|
179
|
+
content: string;
|
|
180
|
+
picUrl: string;
|
|
181
|
+
startVersion: string;
|
|
182
|
+
createTime: number;
|
|
183
|
+
updateTime: number;
|
|
184
|
+
indexNo: number;
|
|
185
|
+
enterpriseId: string;
|
|
186
|
+
custom: boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* 签到文案
|
|
190
|
+
*
|
|
191
|
+
* @property { string } businessType - 业务类型
|
|
192
|
+
* @property { string } name - 业务名称
|
|
193
|
+
* @property { string } remark - 备注
|
|
194
|
+
* @property { string } startVersion - 开始版本
|
|
195
|
+
* @property { number } createTime - 创建时间
|
|
196
|
+
* @property { number } updateTime - 更新时间
|
|
197
|
+
* @property { CopyWritingInfo[] } copyWritings - 签到文案
|
|
198
|
+
*/
|
|
199
|
+
export interface copyWritingsDTO {
|
|
200
|
+
businessType: string;
|
|
201
|
+
name: string;
|
|
202
|
+
remark: string;
|
|
203
|
+
startVersion: string;
|
|
204
|
+
createTime: number;
|
|
205
|
+
updateTime: number;
|
|
206
|
+
copyWritings: CopyWritingInfo[];
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* 签到文案
|
|
210
|
+
*
|
|
211
|
+
* @property { boolean } isSupport - 是否支持签到
|
|
212
|
+
* @property { string } businessName - 业务名称
|
|
213
|
+
* @property { string } content - 签到文案
|
|
214
|
+
* @property { copyWritingsDTO } copyWritingsDTO - 签到文案
|
|
215
|
+
*/
|
|
216
|
+
export interface SignInText {
|
|
217
|
+
isSupport: boolean;
|
|
218
|
+
businessName: string;
|
|
219
|
+
content: string;
|
|
220
|
+
copyWritingsDTO: copyWritingsDTO;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 校验会控主持密码结果
|
|
224
|
+
*/
|
|
225
|
+
export interface ControlPasswordResult {
|
|
226
|
+
code: number;
|
|
227
|
+
data: string;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* 签到/投票业务状态
|
|
231
|
+
*
|
|
232
|
+
* @param { VOTE_SIGNATURE_START } VOTE_SIGNATURE_START - 开始签到
|
|
233
|
+
* @param { VOTE_SIGNATURE_STOP } VOTE_SIGNATURE_STOP - 签到结束
|
|
234
|
+
*/
|
|
235
|
+
export declare enum EVENT_TYPE {
|
|
236
|
+
VOTE_SIGNATURE_START = "VOTE_SIGNATURE_START",
|
|
237
|
+
VOTE_SIGNATURE_STOP = "VOTE_SIGNATURE_STOP"
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 业务类型
|
|
241
|
+
*
|
|
242
|
+
* @param { SIGN_IN } 2 - 签到
|
|
243
|
+
*/
|
|
244
|
+
export declare enum VOTE_TYPE {
|
|
245
|
+
SIGN_IN = 2
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 互动工具业务类型:签到 答题 投票 评价
|
|
249
|
+
*
|
|
250
|
+
* @param { CHECK_IN } CHECK_IN - 签到
|
|
251
|
+
*/
|
|
252
|
+
export declare enum PROCESS_TYPE {
|
|
253
|
+
CHECK_IN = "CHECK_IN"
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* 互动工具业务涉及到弹窗和状态栏内容
|
|
257
|
+
*
|
|
258
|
+
* @property { string } notifyContent - 左上角状态栏文案
|
|
259
|
+
* @property { string } notifyLabel - 左上角状态栏按钮内容 比如签到按钮
|
|
260
|
+
* @property { string } dialogTitle - 弹窗标题
|
|
261
|
+
* @property { string } dialogContent - 弹窗主要内容 黑体字部分
|
|
262
|
+
* @property { string } dialogSubContent - 弹窗描述
|
|
263
|
+
* @property { string } dialogLabel - 弹窗右下角按钮文案
|
|
264
|
+
*/
|
|
265
|
+
export interface CopyWriting {
|
|
266
|
+
notifyContent: string;
|
|
267
|
+
notifyLabel: string;
|
|
268
|
+
dialogTitle: string;
|
|
269
|
+
dialogContent: string;
|
|
270
|
+
dialogSubContent: string;
|
|
271
|
+
dialogLabel: string;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* 会控互动工具相关数据, 签到等
|
|
275
|
+
*
|
|
276
|
+
* @property { EVENT_TYPE } type - 业务状态
|
|
277
|
+
* @property { VOTE_TYPE } voteType - 业务类型, 签到:2
|
|
278
|
+
* @property { string } questionnaireId - 业务id
|
|
279
|
+
* @property { boolean } endAuto - 是否自动结束(有倒计时),还是手动结束
|
|
280
|
+
* @property { number } duration -期限,比如签到剩余时间
|
|
281
|
+
* @property { number } endUtcTime - 结束时间
|
|
282
|
+
* @property { string } meetingId - 会议ID
|
|
283
|
+
* @property { PROCESS_TYPE } processType - 互动工具业务类型:签到 答题 投票 评价
|
|
284
|
+
* @property { string } url - 签到url
|
|
285
|
+
* @property { string } webViewUrl - h5页面url
|
|
286
|
+
* @property { Copywriting } copywriting - 弹窗内容、左侧顶部状态栏内容
|
|
287
|
+
*/
|
|
288
|
+
export interface InteractiveToolInfo {
|
|
289
|
+
type: EVENT_TYPE;
|
|
290
|
+
voteType: VOTE_TYPE;
|
|
291
|
+
questionnaireId: string;
|
|
292
|
+
endAuto?: false;
|
|
293
|
+
duration?: number;
|
|
294
|
+
endUtcTime?: number;
|
|
295
|
+
meetingId?: string;
|
|
296
|
+
processType: PROCESS_TYPE;
|
|
297
|
+
displayResult?: true;
|
|
298
|
+
faceCheckInSupport?: false;
|
|
299
|
+
faceType?: number;
|
|
300
|
+
supportFace?: false;
|
|
301
|
+
supportScan?: true;
|
|
302
|
+
url?: string;
|
|
303
|
+
urlProp?: string;
|
|
304
|
+
webViewUrl?: string;
|
|
305
|
+
webViewUrlProp?: string;
|
|
306
|
+
copywriting?: CopyWriting;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* 获取签到文案参数
|
|
310
|
+
*
|
|
311
|
+
* @property { EVENT_TYPE } type - 业务状态
|
|
312
|
+
* @property { string } environment - 语言
|
|
313
|
+
* @property { VOTE_TYPE } businessType - 业务类型
|
|
314
|
+
*/
|
|
315
|
+
export interface SignInTextParams {
|
|
316
|
+
type: EVENT_TYPE;
|
|
317
|
+
environment: string;
|
|
318
|
+
businessType: VOTE_TYPE;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* 云会议室属性
|
|
322
|
+
*
|
|
323
|
+
* @property { boolean } enableContentLive - 是否开启了多路共享
|
|
324
|
+
* @property { boolean} enableContentLiveOnHold - 是否开启了多路共享,且由管理员指定共享
|
|
325
|
+
*/
|
|
326
|
+
export interface ConferenceProperties {
|
|
327
|
+
enableContentLive: boolean;
|
|
328
|
+
enableContentLiveOnHold: boolean;
|
|
91
329
|
}
|
|
92
330
|
/**
|
|
93
331
|
* 是否是联席主持人
|
|
@@ -126,12 +364,12 @@ export declare enum EnableRename {
|
|
|
126
364
|
/**
|
|
127
365
|
* 信令上报的消息
|
|
128
366
|
*
|
|
129
|
-
* @property { CoChair } coChair -
|
|
130
|
-
* @property { Host } host -
|
|
131
|
-
* @property { EnableRename } enableRename -
|
|
132
|
-
* @property { string } meetingId -
|
|
367
|
+
* @property { CoChair } coChair - 可选,是否是联席主持人
|
|
368
|
+
* @property { Host } host - 可选,是否是主持人
|
|
369
|
+
* @property { EnableRename } enableRename - 可选,是否有改名权限
|
|
370
|
+
* @property { string } meetingId - 可选,会议ID
|
|
133
371
|
*/
|
|
134
|
-
export interface
|
|
372
|
+
export interface XYNotificationContent {
|
|
135
373
|
coChair?: CoChair;
|
|
136
374
|
host?: Host;
|
|
137
375
|
enableRename?: EnableRename;
|
|
@@ -141,11 +379,12 @@ export interface NotificationContent {
|
|
|
141
379
|
* 联席主持人/主持人/改名权限 等消息
|
|
142
380
|
*
|
|
143
381
|
* @property { number } subType - 消息类型
|
|
144
|
-
* @property {
|
|
382
|
+
* @property { XYNotificationContent } content - 消息详细内容
|
|
145
383
|
* @property { string } requestId - 消息ID
|
|
146
384
|
*/
|
|
147
|
-
export interface
|
|
385
|
+
export interface XYNotification {
|
|
148
386
|
subType: number;
|
|
149
|
-
content:
|
|
387
|
+
content: XYNotificationContent;
|
|
150
388
|
requestId: string;
|
|
151
389
|
}
|
|
390
|
+
export {};
|
package/lib/type/peer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Peer lib types
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2023-04-10 18:10:00
|
|
5
|
-
* Last modified : 2024-04-23
|
|
5
|
+
* Last modified : 2024-04-23 17:56:52
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* RTCPeerConnection通道方向
|
|
@@ -59,3 +59,26 @@ export declare enum ReconnectEntry {
|
|
|
59
59
|
'PEER' = "PEER",
|
|
60
60
|
'INIT' = "INIT"
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Content Track 实际宽高信息
|
|
64
|
+
* 计算方式:取多路Track宽高面积最小的一路信息
|
|
65
|
+
*
|
|
66
|
+
* @property { number } width - 宽度
|
|
67
|
+
* @property { number } height - 高度
|
|
68
|
+
* @property { number } area - 面积
|
|
69
|
+
*/
|
|
70
|
+
export interface PeerTrackSizeInfo {
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
area: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Candidate节点信息
|
|
77
|
+
*
|
|
78
|
+
* @property { string } host - UDP节点
|
|
79
|
+
* @property { string } port - 端口
|
|
80
|
+
*/
|
|
81
|
+
export interface XYCandidateHost {
|
|
82
|
+
host: string;
|
|
83
|
+
port: string;
|
|
84
|
+
}
|