@xylink/xy-rtc-sdk 3.8.1 → 3.9.1-beta.6

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.
Files changed (46) hide show
  1. package/lib/action/index.d.ts +29 -5
  2. package/lib/enum/client.d.ts +15 -0
  3. package/lib/enum/contraints.d.ts +30 -102
  4. package/lib/enum/device.d.ts +1 -0
  5. package/lib/enum/errorCode.d.ts +58 -1
  6. package/lib/enum/index.d.ts +53 -16
  7. package/lib/index.d.ts +11 -8
  8. package/lib/main/client.d.ts +157 -79
  9. package/lib/main/deviceManager.d.ts +23 -4
  10. package/lib/main/helper.d.ts +2 -2
  11. package/lib/main/iauth.d.ts +67 -5
  12. package/lib/main/layoutManager.d.ts +29 -11
  13. package/lib/main/meeting.d.ts +73 -35
  14. package/lib/main/peer.d.ts +70 -121
  15. package/lib/main/qualityManager.d.ts +38 -9
  16. package/lib/main/stream.d.ts +237 -104
  17. package/lib/main/videoManager.d.ts +1 -9
  18. package/lib/tools/config.d.ts +5 -1
  19. package/lib/tools/dbManager.d.ts +106 -0
  20. package/lib/tools/detect.d.ts +2 -2
  21. package/lib/tools/enum.d.ts +1 -1
  22. package/lib/tools/httpClient.d.ts +15 -23
  23. package/lib/tools/i18n.d.ts +1 -1
  24. package/lib/tools/logger.d.ts +75 -74
  25. package/lib/tools/logger.worker.d.ts +13 -0
  26. package/lib/tools/quality.d.ts +113 -0
  27. package/lib/tools/quality.worker.d.ts +13 -0
  28. package/lib/tools/queue.d.ts +38 -3
  29. package/lib/tools/template.d.ts +3 -3
  30. package/lib/tools/utils.d.ts +8 -0
  31. package/lib/type/action.d.ts +4 -0
  32. package/lib/type/base.d.ts +2 -2
  33. package/lib/type/client.d.ts +280 -186
  34. package/lib/type/device.d.ts +21 -15
  35. package/lib/type/iauth.d.ts +112 -0
  36. package/lib/type/index.d.ts +4 -0
  37. package/lib/type/layout.d.ts +18 -1
  38. package/lib/type/logger.d.ts +112 -0
  39. package/lib/type/meeting.d.ts +11 -2
  40. package/lib/type/peer.d.ts +20 -0
  41. package/lib/type/quality.d.ts +101 -0
  42. package/lib/type/stream.d.ts +332 -134
  43. package/lib/xyrtc.cjs.js +1 -1
  44. package/lib/xyrtc.umd.js +1 -1
  45. package/package.json +5 -4
  46. package/lib/tools/db.d.ts +0 -85
@@ -1,173 +1,224 @@
1
1
  import { IToken } from './base';
2
2
  import VideoManager from '../main/videoManager';
3
- import { IInternels, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
3
+ import { IInternals, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
4
4
  import { SupportLocalLanguages } from '../enum';
5
5
  import { ICloudRoomConfig } from './meeting';
6
6
  /**
7
7
  * 向Client推送流类型
8
8
  *
9
- * @value All 所有音视频数据
10
- * @value CONTENT 分享内容视频数据
9
+ * @param All - 所有音视频数据
10
+ * @param CONTENT - 分享内容视频数据
11
11
  */
12
- export declare type IPushType = 'ALL' | 'CONTENT';
12
+ export type IPushType = 'ALL' | 'CONTENT' | 'REMOTE';
13
+ /**
14
+ * 推流类型
15
+ *
16
+ * @param CONTENT CONTENT - 创建发送共享内容管道
17
+ * @param PIPE PIPE - 创建推送管道
18
+ * @param VIDEO VIDEO - 创建发送视频管道
19
+ * @param AUDIO AUDIO - 创建发送音频管道
20
+ * @param VIDEO_AUDIO VIDEO_AUDIO - 创建音频/视频发送管道
21
+ * @param VIDEO_AUDIO_PIPE VIDEO_AUDIO_PIPE - 创建音频/视频/仅接收内容管道
22
+ */
23
+ export declare enum PushType {
24
+ 'CONTENT' = "CONTENT",
25
+ 'PIPE' = "PIPE",
26
+ 'VIDEO' = "VIDEO",
27
+ 'AUDIO' = "AUDIO",
28
+ 'VIDEO_AUDIO' = "VIDEO_AUDIO",
29
+ 'VIDEO_AUDIO_PIPE' = "VIDEO_AUDIO_PIPE"
30
+ }
13
31
  /**
14
32
  * 画面布局模式
15
33
  *
16
- * @value AUTO 自动布局,按照宫格/演讲者布局模式返回画面数据
17
- * @value CUSTOM 自定义布局,第三方自由控制人员数量,分辨率,大小,位置
34
+ * @param AUTO 自动布局,按照宫格/演讲者布局模式返回画面数据
35
+ * @param CUSTOM 自定义布局,第三方自由控制人员数量,分辨率,大小,位置
18
36
  */
19
- export declare type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
37
+ export type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
20
38
  /**
21
39
  * 分享Content内容的状态
22
40
  *
23
- * @value ENDED 已结束
24
- * @value STARTING 分享中
25
- * @value PENDING 等待
41
+ * @param ENDED ENDED - 已结束
42
+ * @param STARTING STARTING - 分享中
43
+ * @param PENDING PENDING - 等待
26
44
  */
27
- export declare type IShareContentStatus = 'ENDED' | 'STARTING' | 'PENDING';
45
+ export declare enum ShareContentStatus {
46
+ 'ENDED' = "ENDED",
47
+ 'STARTING' = "STARTING",
48
+ 'PENDING' = "PENDING"
49
+ }
28
50
  /**
29
51
  * VIDEO事件回调状态状态
30
52
  *
31
- * @value LOAD_START 开始加载视频流
32
- * @value CANPLAY 可以播放
33
- * @value ERROR 遇到错误
53
+ * @param LOAD_START - 开始加载视频流
54
+ * @param CANPLAY - 可以播放
55
+ * @param ERROR - 错误
34
56
  */
35
- export declare type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
57
+ export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
36
58
  /**
37
59
  * 视频画面状态
38
60
  *
39
- * @value CANPLAY 正常播放
40
- * @value ENDED 已结束
41
- * @value REQUEST 视频请求中
61
+ * @param CANPLAY 正常播放
62
+ * @param ENDED 已结束
63
+ * @param REQUEST 视频请求中
42
64
  */
43
- export declare type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
65
+ export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
44
66
  /**
45
67
  * Layout布局方式
46
68
  *
47
- * @value SPEAKER 默认值,演讲者模式,即 1大N小 画面模式
48
- * @value GALLERY 另一种是画廊模式,即 宫格布局
69
+ * @param SPEAKER 默认值,演讲者模式,即 1大N小 画面模式
70
+ * @param GALLERY 另一种是画廊模式,即 宫格布局
49
71
  */
50
- export declare type ITemplateMode = 'SPEAKER' | 'GALLERY';
72
+ export type ITemplateMode = 'SPEAKER' | 'GALLERY';
51
73
  /**
52
74
  * 主画面/Content布局模式
53
75
  *
54
- * @value MULTI_PIC_CONTENT_HIGH_PRIORITY Content是大窗口
55
- * @value MULTI_PIC_ACTIVE_HIGH_PRIORITY ActiveSpeaker是大窗口
56
- * @value TWO_PIC_PIP 画中画模式(picture in picture)
57
- * @value CONTENT_ONLY 只显示Content
58
- * @value TWO_PIC_SYMMETRIC 对称显示content和speaker(side by side)
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)
59
81
  */
60
- export declare type IContentTemplateMode = 'MULTI_PIC_CONTENT_HIGH_PRIORITY' | 'MULTI_PIC_ACTIVE_HIGH_PRIORITY' | 'TWO_PIC_PIP' | 'CONTENT_ONLY' | 'TWO_PIC_SYMMETRIC';
82
+ export type IContentTemplateMode = 'MULTI_PIC_CONTENT_HIGH_PRIORITY' | 'MULTI_PIC_ACTIVE_HIGH_PRIORITY' | 'TWO_PIC_PIP' | 'CONTENT_ONLY' | 'TWO_PIC_SYMMETRIC';
61
83
  /**
62
84
  * 布局模式
63
85
  */
64
- export declare type IMode = ITemplateMode | IContentTemplateMode;
86
+ export type IMode = ITemplateMode | IContentTemplateMode;
65
87
  /**
66
88
  * 客户端状态
67
89
  *
68
- * @value NONE 正常
69
- * @value PUBLISH_ERROR 推流异常
70
- * @value WS_CLOSE wss链接关闭
71
- * @value WS_ERROR wss链接错误
90
+ * @param NONE 正常
91
+ * @param PUBLISH_ERROR 推流异常
92
+ * @param WS_CLOSE wss链接关闭
93
+ * @param WS_ERROR wss链接错误
72
94
  */
73
- export declare type IClientErrorState = 'NONE' | 'PUBLISH_ERROR' | 'WS_CLOSE' | 'WS_ERROR';
95
+ export type IClientErrorState = 'NONE' | 'PUBLISH_ERROR' | 'WS_CLOSE' | 'WS_ERROR';
74
96
  /**
75
97
  * 视频状态
76
98
  *
77
- * @value muteVideo 关闭摄像头
78
- * @value unmuteVideo:开启摄像头
99
+ * @param muteVideo 关闭摄像头
100
+ * @param unmuteVideo:开启摄像头
79
101
  */
80
- export declare type IVideoType = 'muteVideo' | 'unmuteVideo';
102
+ export type IVideoType = 'muteVideo' | 'unmuteVideo';
81
103
  /**
82
104
  * 音频状态
83
105
  *
84
- * @value muteAudio 关闭麦克风
85
- * @value unmuteAudio 开启麦克风
106
+ * @param muteAudio 关闭麦克风
107
+ * @param unmuteAudio 开启麦克风
86
108
  */
87
- export declare type IAudioType = 'muteAudio' | 'unmuteAudio';
109
+ export type IAudioType = 'muteAudio' | 'unmuteAudio';
88
110
  /**
89
111
  * 视频/音频状态
90
112
  *
91
- * @value muteAudio 关闭麦克风
92
- * @value unmuteAudio 开启麦克风
93
- * @value muteVideo 关闭摄像头
94
- * @value unmuteVideo:开启摄像头
113
+ * @param muteAudio 关闭麦克风
114
+ * @param unmuteAudio 开启麦克风
115
+ * @param muteVideo 关闭摄像头
116
+ * @param unmuteVideo:开启摄像头
95
117
  */
96
- export declare type IVideoAudioType = 'muteAudio' | 'muteVideo' | 'unmuteAudio' | 'unmuteVideo';
118
+ export type IVideoAudioType = 'muteAudio' | 'muteVideo' | 'unmuteAudio' | 'unmuteVideo';
119
+ /**
120
+ * 视频/音频操作状态
121
+ *
122
+ * @param MUTE_AUDIO: muteAudio 关闭麦克风
123
+ * @param UNMUTE_AUDIO: unmuteAudio 开启麦克风
124
+ * @param MUTE_VIDEO: muteVideo 关闭摄像头
125
+ * @param UNMUTE_VIDEO: unmuteVideo 开启摄像头
126
+ */
127
+ export declare enum OperateType {
128
+ MUTE_AUDIO = "muteAudio",
129
+ UNMUTE_AUDIO = "unmuteAudio",
130
+ MUTE_VIDEO = "muteVideo",
131
+ UNMUTE_VIDEO = "unmuteVideo"
132
+ }
97
133
  /**
98
134
  * 画面内容类型
99
135
  *
100
- * @value 0 People画面
101
- * @value 1 Content共享内容
136
+ * @param 0 People画面
137
+ * @param 1 Content共享内容
102
138
  */
103
- export declare type IMediagroupid = 0 | 1;
104
- export declare type IVideoAudioMessageType = 'AUDIO_MUTE' | 'VIDEO_MUTE' | 'AUDIO_UN_MUTE' | 'VIDEO_UN_MUTE';
139
+ export type IMediagroupid = 0 | 1;
140
+ export type IVideoAudioMessageType = 'AUDIO_MUTE' | 'VIDEO_MUTE' | 'AUDIO_UN_MUTE' | 'VIDEO_UN_MUTE';
105
141
  /**
106
142
  * 布局画面状态
107
143
  *
108
- * @value MUTE 视频暂停
109
- * @value REQUEST 视频请求中
110
- * @value NORMAL 视频正常
111
- * @value INVALID 设备不可用
112
- * @value AUDIO_TEL 电话入会
113
- * @value AUDIO_ONLY 仅音频入会模式
114
- * @value AUDIO_CONTENT 仅音频共享
144
+ * @param MUTE 视频暂停
145
+ * @param REQUEST 视频请求中
146
+ * @param NORMAL 视频正常
147
+ * @param INVALID 设备不可用
148
+ * @param AUDIO_TEL 电话入会
149
+ * @param AUDIO_ONLY 仅音频入会模式
150
+ * @param AUDIO_CONTENT 仅音频共享
115
151
  */
116
- export declare type ILayoutState = 'MUTE' | 'REQUEST' | 'NORMAL' | 'INVALID' | 'AUDIO_TEL' | 'AUDIO_ONLY' | 'AUDIO_CONTENT';
152
+ export type ILayoutState = 'MUTE' | 'REQUEST' | 'NORMAL' | 'INVALID' | 'AUDIO_TEL' | 'AUDIO_ONLY' | 'AUDIO_CONTENT';
117
153
  /**
118
154
  * 分享content类型
119
155
  *
120
- * @value NONE 无
121
- * @value AUDIO 只分享audio
122
- * @value VIDEO 只分享video
123
- * @value BOTH 分享video + audio
156
+ * @param NONE 无
157
+ * @param AUDIO 只分享audio
158
+ * @param VIDEO 只分享video
159
+ * @param BOTH 分享video + audio
124
160
  */
125
- export declare type IContentMode = 'NONE' | 'AUDIO' | 'VIDEO' | 'BOTH';
161
+ export declare enum ContentMode {
162
+ 'NONE' = "NONE",
163
+ 'AUDIO' = "AUDIO",
164
+ 'VIDEO' = "VIDEO",
165
+ 'BOTH' = "BOTH"
166
+ }
126
167
  /**
127
168
  * 埋点数据上报类型
128
169
  *
129
- * @value click 点击
130
- * @value msgCallback 消息回调
131
- * @value server server消息
132
- * @value trigger 触发事件类型
170
+ * @param click 点击
171
+ * @param msgCallback 消息回调
172
+ * @param server server消息
173
+ * @param trigger 触发事件类型
133
174
  */
134
- export declare type TStateAction = 'click' | 'msgCallback' | 'server' | 'trigger';
175
+ export type TStateAction = 'click' | 'msgCallback' | 'server' | 'trigger';
135
176
  /**
136
177
  * 埋点数据上报
137
178
  */
138
- export declare type TCategory = 'sta-confStatus' | 'oper-confOperation' | 'sta-msgCallback' | 'oper-setting';
179
+ export type TCategory = 'sta-confStatus' | 'oper-confOperation' | 'sta-msgCallback' | 'oper-setting';
139
180
  /**
140
181
  * 事件名称
141
182
  */
142
- export declare type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioUnmute' | 'videoMute' | 'videoUnmute' | 'udioUnmute' | 'audioMute' | 'subtitle' | string;
183
+ export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioUnmute' | 'videoMute' | 'videoUnmute' | 'subtitle' | string;
143
184
  /**
144
185
  * 轮询多画面状态
145
186
  *
146
- * @value 0 开始
147
- * @value 1 停止
148
- * @value 2 暂停
149
- * @value 3 恢复
187
+ * @param 0 开始
188
+ * @param 1 停止
189
+ * @param 2 暂停
190
+ * @param 3 恢复
150
191
  */
151
- export declare type TCommand = 0 | 1 | 2 | 3;
192
+ export type TCommand = 0 | 1 | 2 | 3;
152
193
  /**
153
194
  * 设备类型
154
195
  */
155
- declare type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
196
+ type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
156
197
  /**
157
198
  * 是否禁止收听
158
199
  *
159
- * @value 'keep' 保持上次的状态
160
- * @value 'on' 禁止收听
161
- * @value 'off' 取消禁止收听
200
+ * @param 'keep' 保持上次的状态
201
+ * @param 'on' 禁止收听
202
+ * @param 'off' 取消禁止收听
203
+ */
204
+ export type IMuteSpeaker = 'keep' | 'on' | 'off';
205
+ /**
206
+ * 画面布局模式
207
+ *
208
+ * @param AUTO - 自动布局
209
+ * @param CUSTOM - 自定义布局
162
210
  */
163
- export declare type IMuteSpeaker = 'keep' | 'on' | 'off';
211
+ export declare enum LayoutMode {
212
+ AUTO = "AUTO",
213
+ CUSTOM = "CUSTOM"
214
+ }
164
215
  /**
165
216
  * 录制状态
166
217
  *
167
- * @value RECORD_STATE_IDLE 停止成功
168
- * @value RECORD_STATE_STARTING 开启录制
169
- * @value RECORD_STATE_STARTED 开启成功
170
- * @value RECORD_STATE_STOPING 停止录制
218
+ * @param RECORD_STATE_IDLE - 停止录制成功
219
+ * @param RECORD_STATE_STARTING - 开启录制
220
+ * @param RECORD_STATE_STARTED - 开启录制成功
221
+ * @param RECORD_STATE_STOPING - 停止录制
171
222
  */
172
223
  export declare enum RecordingState {
173
224
  RECORD_STATE_IDLE = "RECORD_STATE_IDLE",
@@ -178,10 +229,10 @@ export declare enum RecordingState {
178
229
  /**
179
230
  * 录制状态
180
231
  *
181
- * @param NONE 未开启录制
182
- * @param LOCAL_START 本地开启录制
183
- * @param REMOTE_STAR 远端开启录制
184
- * @param REMOTE_PAUSED 远端录制暂停中
232
+ * @param NONE 0 - 未开启录制
233
+ * @param LOCAL_START 1 - 本地开启录制
234
+ * @param REMOTE_STAR 2 - 远端开启录制
235
+ * @param REMOTE_PAUSED 3 - 远端录制暂停中
185
236
  */
186
237
  export declare enum RecordStatus {
187
238
  NONE = 0,
@@ -189,10 +240,29 @@ export declare enum RecordStatus {
189
240
  REMOTE_STAR = 2,
190
241
  REMOTE_PAUSED = 3
191
242
  }
243
+ /**
244
+ * 手机相机方向
245
+ *
246
+ * @param FRONT - 前置摄像头
247
+ * @param BACK - 后置摄像头
248
+ */
249
+ export declare enum FacingMode {
250
+ FRONT = "FRONT",
251
+ BACK = "BACK"
252
+ }
253
+ /**
254
+ * 手机相机方向
255
+ *
256
+ * @property 'FRONT' - 前置摄像头
257
+ * @property 'BACK' - 后置摄像头
258
+ */
259
+ export type IFacingMode = keyof typeof FacingMode;
192
260
  /**
193
261
  * client配置参数
194
262
  *
195
263
  * @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
264
+ * @property { string } clientSecret 必填 | "" | 网关密钥,需要从对接人处获取
265
+ * @property { string } extId 非必填 企业ID
196
266
  * @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
197
267
  * @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
198
268
  * @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
@@ -218,6 +288,7 @@ export declare enum RecordStatus {
218
288
  export interface IClientConfig {
219
289
  clientId: string;
220
290
  clientSecret?: string;
291
+ extId?: string;
221
292
  server?: string;
222
293
  wssServer?: string;
223
294
  httpServer?: string;
@@ -273,7 +344,7 @@ export interface ITemplateResolution {
273
344
  * @property { number } zIndex - 层级
274
345
  * @property { string } type - 类型,LOCAL/CONTENT
275
346
  */
276
- export declare type ITemplateObj = {
347
+ export type ITemplateObj = {
277
348
  position: number[];
278
349
  resolution: ITemplateResolution;
279
350
  quality?: VideoQuality;
@@ -300,7 +371,7 @@ export interface ITemplate {
300
371
  */
301
372
  export interface IDefault {
302
373
  CLIENT_TYPE: string;
303
- INIT_INTERNELS: IInternels;
374
+ INIT_INTERNALS: IInternals;
304
375
  RESOLUTION: number;
305
376
  ROSTER: IRoster;
306
377
  SELF_MOCK_PID: number;
@@ -315,13 +386,14 @@ export interface IDefault {
315
386
  RESOLUTION_MAP: {
316
387
  [index: number]: number;
317
388
  };
318
- VIDE_BANDWIDTH_BIT: 1000;
389
+ VIDE_BANDWIDTH_BIT: number;
390
+ VIDE_FRAMERATE_BIT: number;
319
391
  LOGIN_INFO: {
320
392
  callUri: string;
321
393
  securityKey: string;
322
394
  access_token: string;
323
395
  refresh_token: string;
324
- id: 0;
396
+ id: number;
325
397
  displayName: string;
326
398
  };
327
399
  LAYOUT: ILayout;
@@ -347,6 +419,7 @@ export interface IDefault {
347
419
  * @property { string } displayName 登录用户名
348
420
  * @property { string } cellPhone 呼叫号码
349
421
  * @property { string } extUserId 第三方用户ID
422
+ * @property { string } enterpriseId 企业ID
350
423
  */
351
424
  export interface ILoginInfo {
352
425
  callUri?: string;
@@ -357,6 +430,7 @@ export interface ILoginInfo {
357
430
  displayName?: string;
358
431
  cellPhone?: string;
359
432
  extUserId?: string;
433
+ enterpriseId?: string;
360
434
  }
361
435
  export interface ICodeList {
362
436
  version: string;
@@ -370,12 +444,14 @@ export interface ICodeList {
370
444
  [key: string]: string;
371
445
  };
372
446
  }
373
- export interface IMUTE_MAP {
374
- [type: string]: {
375
- type: IVideoAudioMessageType;
376
- status: boolean;
377
- };
378
- }
447
+ export type OPERATE_MAP_VALUE = {
448
+ type: IVideoAudioMessageType;
449
+ reportEventType: string;
450
+ enabled: boolean;
451
+ };
452
+ export type IOPERATE_MAP = {
453
+ [key in OperateType]: OPERATE_MAP_VALUE;
454
+ };
379
455
  /**
380
456
  * 配置画面数据
381
457
  *
@@ -386,7 +462,7 @@ export interface IMUTE_MAP {
386
462
  * @property { boolean } isContent 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
387
463
  * @property { string } callUri NewLayout版本无此参数
388
464
  */
389
- export declare type IReqInfo = {
465
+ export type IReqInfo = {
390
466
  calluri: string;
391
467
  resolution: StreamResolutionLevel;
392
468
  quality: VideoQuality;
@@ -464,29 +540,6 @@ export interface IMediaSupportedConstraints {
464
540
  export interface ICandidate extends RTCIceCandidateInit {
465
541
  type?: string;
466
542
  }
467
- /**
468
- * 第三方登录用户信息
469
- *
470
- * @property { string } displayName 用户名称
471
- * @property { string } extId 企业id
472
- */
473
- export interface ILoginExtAccount {
474
- displayName: string;
475
- extId: string;
476
- extUserId?: string;
477
- }
478
- /**
479
- * 第三方登录sdk用户信息,由sdk server创建
480
- *
481
- * @property { string } userName sdk用户名
482
- * @property { string } password sdk密码
483
- * @property { string? } extId sdk企业Id
484
- */
485
- export interface ISdkUserInfo {
486
- userName: string;
487
- password: string;
488
- extId?: string;
489
- }
490
543
  export interface IHttpConfig {
491
544
  baseUrl: string;
492
545
  }
@@ -521,6 +574,7 @@ export interface IConfAuxProperties {
521
574
  * @property { string } avatar 头像
522
575
  * @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
523
576
  * @property { string } meetingId 当前会议ID
577
+ * @property { string } displayNum 显示的会议号
524
578
  */
525
579
  export interface IConferenceInfo {
526
580
  callNumber?: string;
@@ -534,6 +588,7 @@ export interface IConferenceInfo {
534
588
  avatar?: string;
535
589
  inviteInfo?: InviteInfo;
536
590
  meetingId?: string;
591
+ displayNum?: string;
537
592
  }
538
593
  /**
539
594
  * 会议分享信息
@@ -665,29 +720,27 @@ export interface IMeetingControl {
665
720
  /**
666
721
  * Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
667
722
  *
723
+ * @property { string } id 参会者唯一id,值为 endpointId + mediagroupid,用于区分一个人同时发送people+content画面数据
668
724
  * @property { IDeviceType } deviceType 设备类型
669
725
  * @property { string } endpointId 设备id
670
726
  * @property { string } displayName 参会者名称
671
- * @property { 0 | 1 } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
727
+ * @property { number } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
672
728
  * @property { number } participantId 参会者id
673
729
  * @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
674
730
  * @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
731
+ * @property { boolean } isForceFullScreen 参会者是否是主画面
732
+ * @property { number } videoMuteReason 视频关闭原因
733
+ * @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
734
+ * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
735
+ * @property { boolean } isLocal 是否是Local设备
675
736
  * @property { boolean } audioRxMute ignore
676
737
  * @property { boolean } videoRxMute ignore
677
- * @property { number } videoMuteReason ignore
678
- * @property { boolean } isForceFullScreen 参会者是否是主画面
738
+ * @property { boolean } onHold ignore
679
739
  * @property { boolean } isLastAdd ignore
680
- * @property { boolean } onHold 参会者是否是被呼叫等待状态
681
740
  * @property { boolean } isPolling ignore
682
- * @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
683
- * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
684
- * @property { string } id 参会者唯一id,值为 endpointId + mediagroupid,用于区分一个人同时发送people+content画面数据
685
- * @property { string } extUserId 三方userId
686
- * @property { boolean } isLocal 参会者是否是自己
687
- * @property { number } ExpectHeight 期望分辨率
688
- * @property { number } ExpectWidth 期望分辨率
689
741
  */
690
- export interface IRoster {
742
+ export interface IRoster extends Partial<ILayoutRoster> {
743
+ id: string;
691
744
  deviceType: IDeviceType;
692
745
  endpointId: string;
693
746
  displayName: string;
@@ -703,53 +756,62 @@ export interface IRoster {
703
756
  onHold: boolean;
704
757
  isPolling: boolean;
705
758
  isContent: boolean;
706
- isActiveSpeaker?: boolean;
707
- id: string;
708
- extUserId: string;
759
+ isActiveSpeaker: boolean;
709
760
  isLocal?: boolean;
710
- ExpectHeight?: number;
711
- ExpectWidth?: number;
712
761
  }
713
762
  /**
714
763
  * Layout Result布局结果中返回的基础数据
715
764
  *
716
765
  * @property { number } participantId 参会者id
717
766
  * @property { 0 | 1 } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
718
- * @property { number } feccOri ignore
719
767
  * @property { string } remoteType 设备类型
720
768
  * @property { string } remoteName 参会者名称
721
- * @property { string } remoteID ignore
722
769
  * @property { string } videoTrackId 当前参会者画面Track轨道id,用于在 VideoTrackList 中匹配stream数据
723
- * @property { string } audioTrackId ignore
724
770
  * @property { boolean } isAudioMute 参会者麦克风状态,true:开启,false:关闭
725
771
  * @property { boolean } isVideoMute 参会者摄像头状态,true:开启,false:关闭
726
772
  * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
727
- * @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
728
- * @property { boolean } isChairman 参会者是否是主画面
729
- * @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
730
773
  * @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
731
- * @property { number } MuteReason ignore
774
+ * @property { number } MuteReason 视频关闭原因
775
+ * @property { number } extUserId 参会者ID
732
776
  * @property { string } calluri 参会者Url
733
- * @property { boolean } isLocal 参会者是否是自己
777
+ * @property { number } ExpectHeight 期望分辨率
778
+ * @property { number } ExpectWidth 期望分辨率
779
+ * @property { number } feccOri ignore
734
780
  */
735
781
  export interface ILayoutRoster {
736
782
  participantId: number;
737
783
  mediagroupid: number;
738
- feccOri: number;
739
784
  remoteType: string;
740
785
  remoteName: string;
741
- remoteID: string;
742
786
  videoTrackId: string;
743
- audioTrackId: string;
744
787
  isAudioMute: boolean;
745
788
  isVideoMute: boolean;
746
789
  isActiveSpeaker: boolean;
747
- isContent: boolean;
748
- isChairman: boolean;
749
790
  LayoutVideoState: number;
750
- MuteReason: number;
751
- calluri?: string;
752
- isLocal?: boolean;
791
+ MuteReason: MuteReason;
792
+ extUserId: string;
793
+ calluri: string;
794
+ ExpectHeight: number;
795
+ ExpectWidth: number;
796
+ feccOri: number;
797
+ }
798
+ /**
799
+ * 视频关闭原因
800
+ *
801
+ * @param MuteByUser - 用户自己关闭
802
+ * @param MuteByBWLimit - 带宽限制
803
+ * @param MuteByNoInput - 没有视频输入
804
+ * @param MuteByConfMgmt - 会控关闭
805
+ * @param MuteByDeviceDetection - 设备探测
806
+ * @param MuteByPhoneCall - 电话占用
807
+ */
808
+ export declare enum MuteReason {
809
+ MuteByUser = 0,
810
+ MuteByBWLimit = 1,
811
+ MuteByNoInput = 2,
812
+ MuteByConfMgmt = 3,
813
+ MuteByDeviceDetection = 4,
814
+ MuteByPhoneCall = 5
753
815
  }
754
816
  /**
755
817
  * Conf Change消息
@@ -829,12 +891,13 @@ export interface ILayout {
829
891
  deal?: boolean;
830
892
  zIndex?: number;
831
893
  avatar?: string;
894
+ textAvatar?: string;
832
895
  index?: number;
833
896
  }
834
897
  /**
835
898
  * Local布局对象
836
899
  *
837
- * @extends ILayout
900
+ * @implements ILayout
838
901
  * @property { boolean } isLocal 是否是当前设备
839
902
  */
840
903
  export interface ILocalLayout extends ILayout {
@@ -862,9 +925,9 @@ export interface IScreenInfo {
862
925
  * @property { number } width 宽度
863
926
  * @property { number } participantId 用户id
864
927
  * @property { number } rotation 旋转角度
865
- * @value 0 | 1 不需要旋转
866
- * @value 2 顺时针旋转180度
867
- * @value 3 顺时针旋转270度
928
+ * @param 0 | 1 不需要旋转
929
+ * @param 2 顺时针旋转180度
930
+ * @param 3 顺时针旋转270度
868
931
  */
869
932
  export interface IRotationInfoItem {
870
933
  height: number;
@@ -909,8 +972,8 @@ export interface IRotationInfo {
909
972
  * @value 1 200
910
973
  * @value 3 300
911
974
  * @property { number } mediagroupid 当前流的类型:people/content
912
- * @value 0 people
913
- * @value 1 content
975
+ * @param 0 people
976
+ * @param 1 content
914
977
  */
915
978
  export interface ICustomLayout {
916
979
  pid: number;
@@ -984,12 +1047,12 @@ export interface ISubTitleContent {
984
1047
  scrollSpeed?: string;
985
1048
  backgroundRGB?: string;
986
1049
  }
987
- export declare type IAudioRenders = {
1050
+ export type IAudioRenders = {
988
1051
  [key: string]: {
989
1052
  ele: any;
990
1053
  };
991
1054
  };
992
- export declare type IVideoRenders = {
1055
+ export type IVideoRenders = {
993
1056
  [key: string]: VideoManager & {
994
1057
  match?: boolean;
995
1058
  };
@@ -997,7 +1060,7 @@ export declare type IVideoRenders = {
997
1060
  /**
998
1061
  * 同传字幕: 本地支持的语言
999
1062
  */
1000
- export declare type TLocalLanguage = typeof SupportLocalLanguages[number];
1063
+ export type TLocalLanguage = (typeof SupportLocalLanguages)[number];
1001
1064
  export interface IOutputCustomLayout {
1002
1065
  [pid: string]: {
1003
1066
  resolution: number;
@@ -1063,18 +1126,16 @@ export interface ITrackInfo {
1063
1126
  /**
1064
1127
  * ws close reason
1065
1128
  */
1066
- export declare type TErrorReason<P = {}> = P & {
1129
+ export type TErrorReason<P = {}> = P & {
1067
1130
  code?: number;
1068
1131
  };
1069
1132
  /**
1070
1133
  * 是否静音
1071
1134
  *
1072
- * @enum
1073
- *
1074
- * @property {number} AutoMute.SMART 智能静音
1075
- * @property {number} AutoMute.ALL 全部静音
1076
- * @property {number} AutoMute.NOT 不静音
1077
- * @property {number} AutoMute.FORCE 强制静音
1135
+ * @param SMART 0 - 智能静音
1136
+ * @param ALL 1 - 全部静音
1137
+ * @param NOT 2 - 不静音
1138
+ * @param FORCE 3 - 强制静音
1078
1139
  */
1079
1140
  export declare enum AutoMute {
1080
1141
  SMART = 0,
@@ -1086,29 +1147,30 @@ export interface IGetConferenceParams {
1086
1147
  autoMute: AutoMute;
1087
1148
  }
1088
1149
  /**
1089
- * 录制结果上报
1150
+ * 本地录制结果上报
1090
1151
  *
1091
- * @property { string } reason stream id
1092
- * @property { string } state
1093
- * @property { boolean } isRecorded
1094
- * @property { string } controlUri
1152
+ * @property { string } reason - 成功STATE:200
1153
+ * @property { RecordingState } state - 录制状态
1154
+ * @property { boolean } isRecorded - ignore
1155
+ * @property { string } controlUri - ignore
1156
+ * @property { string } reasonText - ignore
1095
1157
  */
1096
1158
  export interface IRecordingStateChanged {
1097
1159
  reason: string;
1098
- state: string;
1160
+ state: RecordingState;
1099
1161
  isRecorded: boolean;
1100
1162
  controlUri: string;
1101
1163
  reasonText: string;
1102
1164
  }
1103
1165
  /**
1104
- * 录制状态上报
1166
+ * 远端录制状态上报
1105
1167
  *
1106
- * @property { boolean } isStart stream id
1107
- * @property { string } uri
1108
- * @property { string } callUri
1109
- * @property { string } callerUri
1110
- * @property { string } status
1111
- * @property { boolean } isLocal 是否是local开启的录制
1168
+ * @property { boolean } isStart - 是否已经存在录制 true:存在录制;false:不存在录制
1169
+ * @property { string } uri - 录制的displayName,即callUri的名称,当是" "时,取会议室名称
1170
+ * @property { string } callUri - 录制终端callUri
1171
+ * @property { string } callerUri - ignore
1172
+ * @property { string } status - 录制状态 RECORDING_STATE_PAUSED(录制暂停),RECORDING_STATE_ACTING(录制恢复)
1173
+ * @property { boolean } isLocal - 是否是local开启的录制
1112
1174
  */
1113
1175
  export interface IRecordStatusNotification {
1114
1176
  isStart: Boolean;
@@ -1226,7 +1288,8 @@ export interface IConfMgmtUrl {
1226
1288
  pc: string;
1227
1289
  member: string;
1228
1290
  side: string;
1229
- mobile?: string;
1291
+ mobile: string;
1292
+ professional: string;
1230
1293
  }
1231
1294
  /**
1232
1295
  * 上报会控控制开启/关闭摄像头结果
@@ -1262,14 +1325,14 @@ export interface IEPMessage {
1262
1325
  /**
1263
1326
  * 会控开启/关闭摄像头消息、Toast提示消息
1264
1327
  */
1265
- export declare type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
1328
+ export type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
1266
1329
  /**
1267
1330
  * 会控开关摄像头三个事件类型
1268
1331
  * unMuteVideoQuery: 会控请求打开摄像头
1269
1332
  * muteVideoQuery: 会控请求关闭摄像头
1270
1333
  * toast: 主持会议的客户端收到的成功和失败提醒
1271
1334
  */
1272
- export declare type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1335
+ export type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1273
1336
  /**
1274
1337
  * 会控开关摄像头事件基础消息体
1275
1338
  *
@@ -1359,4 +1422,35 @@ export interface IWaitingState {
1359
1422
  waitingState: number;
1360
1423
  automute: string;
1361
1424
  }
1425
+ /**
1426
+ * 通知媒体网关:流能力集配置
1427
+ */
1428
+ export interface IStreamCapability {
1429
+ streamId: string;
1430
+ resolution: StreamResolutionLevel;
1431
+ }
1432
+ /**
1433
+ * 是否是联席主持人
1434
+ *
1435
+ * @param ON - 是
1436
+ * @param OFF - 否
1437
+ */
1438
+ export declare enum CoChair {
1439
+ ON = "on",
1440
+ OFF = "off"
1441
+ }
1442
+ /**
1443
+ * 信令上报的消息
1444
+ *
1445
+ * @property { number } subType - 消息类型
1446
+ * @property { number } content - 消息详细内容
1447
+ * @property { CoChair } content.coChair - 是否是联席主持人
1448
+ */
1449
+ export interface Notification {
1450
+ subType: number;
1451
+ content: {
1452
+ coChair: CoChair;
1453
+ };
1454
+ requestId: string;
1455
+ }
1362
1456
  export {};