@xylink/xy-rtc-sdk 3.8.1 → 3.9.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/lib/action/index.d.ts +20 -5
- package/lib/enum/client.d.ts +15 -0
- package/lib/enum/contraints.d.ts +33 -96
- package/lib/enum/device.d.ts +1 -0
- package/lib/enum/errorCode.d.ts +58 -1
- package/lib/enum/index.d.ts +44 -16
- package/lib/index.d.ts +11 -8
- package/lib/main/client.d.ts +93 -63
- package/lib/main/deviceManager.d.ts +23 -4
- package/lib/main/helper.d.ts +2 -2
- package/lib/main/iauth.d.ts +14 -1
- package/lib/main/layoutManager.d.ts +29 -11
- package/lib/main/meeting.d.ts +71 -34
- package/lib/main/peer.d.ts +70 -121
- package/lib/main/qualityManager.d.ts +38 -9
- package/lib/main/stream.d.ts +237 -104
- package/lib/main/videoManager.d.ts +1 -9
- package/lib/tools/dbManager.d.ts +106 -0
- package/lib/tools/detect.d.ts +2 -2
- package/lib/tools/enum.d.ts +1 -1
- package/lib/tools/httpClient.d.ts +4 -4
- package/lib/tools/i18n.d.ts +1 -1
- package/lib/tools/logger.d.ts +75 -74
- package/lib/tools/logger.worker.d.ts +13 -0
- package/lib/tools/quality.d.ts +113 -0
- package/lib/tools/quality.worker.d.ts +13 -0
- package/lib/tools/queue.d.ts +38 -3
- package/lib/tools/template.d.ts +3 -3
- package/lib/tools/utils.d.ts +8 -0
- package/lib/type/base.d.ts +2 -2
- package/lib/type/client.d.ts +255 -150
- package/lib/type/device.d.ts +21 -15
- package/lib/type/index.d.ts +3 -0
- package/lib/type/layout.d.ts +18 -1
- package/lib/type/logger.d.ts +112 -0
- package/lib/type/meeting.d.ts +11 -2
- package/lib/type/peer.d.ts +20 -0
- package/lib/type/quality.d.ts +101 -0
- package/lib/type/stream.d.ts +332 -134
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +4 -4
- package/lib/tools/db.d.ts +0 -85
package/lib/type/client.d.ts
CHANGED
|
@@ -1,173 +1,224 @@
|
|
|
1
1
|
import { IToken } from './base';
|
|
2
2
|
import VideoManager from '../main/videoManager';
|
|
3
|
-
import {
|
|
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
|
-
* @
|
|
10
|
-
* @
|
|
9
|
+
* @param All - 所有音视频数据
|
|
10
|
+
* @param CONTENT - 分享内容视频数据
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
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
|
-
* @
|
|
17
|
-
* @
|
|
34
|
+
* @param AUTO 自动布局,按照宫格/演讲者布局模式返回画面数据
|
|
35
|
+
* @param CUSTOM 自定义布局,第三方自由控制人员数量,分辨率,大小,位置
|
|
18
36
|
*/
|
|
19
|
-
export
|
|
37
|
+
export type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
|
|
20
38
|
/**
|
|
21
39
|
* 分享Content内容的状态
|
|
22
40
|
*
|
|
23
|
-
* @
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
41
|
+
* @param ENDED ENDED - 已结束
|
|
42
|
+
* @param STARTING STARTING - 分享中
|
|
43
|
+
* @param PENDING PENDING - 等待
|
|
26
44
|
*/
|
|
27
|
-
export declare
|
|
45
|
+
export declare enum ShareContentStatus {
|
|
46
|
+
'ENDED' = "ENDED",
|
|
47
|
+
'STARTING' = "STARTING",
|
|
48
|
+
'PENDING' = "PENDING"
|
|
49
|
+
}
|
|
28
50
|
/**
|
|
29
51
|
* VIDEO事件回调状态状态
|
|
30
52
|
*
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
33
|
-
* @
|
|
53
|
+
* @param LOAD_START - 开始加载视频流
|
|
54
|
+
* @param CANPLAY - 可以播放
|
|
55
|
+
* @param ERROR - 错误
|
|
34
56
|
*/
|
|
35
|
-
export
|
|
57
|
+
export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
|
|
36
58
|
/**
|
|
37
59
|
* 视频画面状态
|
|
38
60
|
*
|
|
39
|
-
* @
|
|
40
|
-
* @
|
|
41
|
-
* @
|
|
61
|
+
* @param CANPLAY 正常播放
|
|
62
|
+
* @param ENDED 已结束
|
|
63
|
+
* @param REQUEST 视频请求中
|
|
42
64
|
*/
|
|
43
|
-
export
|
|
65
|
+
export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
|
|
44
66
|
/**
|
|
45
67
|
* Layout布局方式
|
|
46
68
|
*
|
|
47
|
-
* @
|
|
48
|
-
* @
|
|
69
|
+
* @param SPEAKER 默认值,演讲者模式,即 1大N小 画面模式
|
|
70
|
+
* @param GALLERY 另一种是画廊模式,即 宫格布局
|
|
49
71
|
*/
|
|
50
|
-
export
|
|
72
|
+
export type ITemplateMode = 'SPEAKER' | 'GALLERY';
|
|
51
73
|
/**
|
|
52
74
|
* 主画面/Content布局模式
|
|
53
75
|
*
|
|
54
|
-
* @
|
|
55
|
-
* @
|
|
56
|
-
* @
|
|
57
|
-
* @
|
|
58
|
-
* @
|
|
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
|
|
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
|
|
86
|
+
export type IMode = ITemplateMode | IContentTemplateMode;
|
|
65
87
|
/**
|
|
66
88
|
* 客户端状态
|
|
67
89
|
*
|
|
68
|
-
* @
|
|
69
|
-
* @
|
|
70
|
-
* @
|
|
71
|
-
* @
|
|
90
|
+
* @param NONE 正常
|
|
91
|
+
* @param PUBLISH_ERROR 推流异常
|
|
92
|
+
* @param WS_CLOSE wss链接关闭
|
|
93
|
+
* @param WS_ERROR wss链接错误
|
|
72
94
|
*/
|
|
73
|
-
export
|
|
95
|
+
export type IClientErrorState = 'NONE' | 'PUBLISH_ERROR' | 'WS_CLOSE' | 'WS_ERROR';
|
|
74
96
|
/**
|
|
75
97
|
* 视频状态
|
|
76
98
|
*
|
|
77
|
-
* @
|
|
78
|
-
* @
|
|
99
|
+
* @param muteVideo 关闭摄像头
|
|
100
|
+
* @param unmuteVideo:开启摄像头
|
|
79
101
|
*/
|
|
80
|
-
export
|
|
102
|
+
export type IVideoType = 'muteVideo' | 'unmuteVideo';
|
|
81
103
|
/**
|
|
82
104
|
* 音频状态
|
|
83
105
|
*
|
|
84
|
-
* @
|
|
85
|
-
* @
|
|
106
|
+
* @param muteAudio 关闭麦克风
|
|
107
|
+
* @param unmuteAudio 开启麦克风
|
|
86
108
|
*/
|
|
87
|
-
export
|
|
109
|
+
export type IAudioType = 'muteAudio' | 'unmuteAudio';
|
|
88
110
|
/**
|
|
89
111
|
* 视频/音频状态
|
|
90
112
|
*
|
|
91
|
-
* @
|
|
92
|
-
* @
|
|
93
|
-
* @
|
|
94
|
-
* @
|
|
113
|
+
* @param muteAudio 关闭麦克风
|
|
114
|
+
* @param unmuteAudio 开启麦克风
|
|
115
|
+
* @param muteVideo 关闭摄像头
|
|
116
|
+
* @param unmuteVideo:开启摄像头
|
|
95
117
|
*/
|
|
96
|
-
export
|
|
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
|
-
* @
|
|
101
|
-
* @
|
|
136
|
+
* @param 0 People画面
|
|
137
|
+
* @param 1 Content共享内容
|
|
102
138
|
*/
|
|
103
|
-
export
|
|
104
|
-
export
|
|
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
|
-
* @
|
|
109
|
-
* @
|
|
110
|
-
* @
|
|
111
|
-
* @
|
|
112
|
-
* @
|
|
113
|
-
* @
|
|
114
|
-
* @
|
|
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
|
|
152
|
+
export type ILayoutState = 'MUTE' | 'REQUEST' | 'NORMAL' | 'INVALID' | 'AUDIO_TEL' | 'AUDIO_ONLY' | 'AUDIO_CONTENT';
|
|
117
153
|
/**
|
|
118
154
|
* 分享content类型
|
|
119
155
|
*
|
|
120
|
-
* @
|
|
121
|
-
* @
|
|
122
|
-
* @
|
|
123
|
-
* @
|
|
156
|
+
* @param NONE 无
|
|
157
|
+
* @param AUDIO 只分享audio
|
|
158
|
+
* @param VIDEO 只分享video
|
|
159
|
+
* @param BOTH 分享video + audio
|
|
124
160
|
*/
|
|
125
|
-
export declare
|
|
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
|
-
* @
|
|
130
|
-
* @
|
|
131
|
-
* @
|
|
132
|
-
* @
|
|
170
|
+
* @param click 点击
|
|
171
|
+
* @param msgCallback 消息回调
|
|
172
|
+
* @param server server消息
|
|
173
|
+
* @param trigger 触发事件类型
|
|
133
174
|
*/
|
|
134
|
-
export
|
|
175
|
+
export type TStateAction = 'click' | 'msgCallback' | 'server' | 'trigger';
|
|
135
176
|
/**
|
|
136
177
|
* 埋点数据上报
|
|
137
178
|
*/
|
|
138
|
-
export
|
|
179
|
+
export type TCategory = 'sta-confStatus' | 'oper-confOperation' | 'sta-msgCallback' | 'oper-setting';
|
|
139
180
|
/**
|
|
140
181
|
* 事件名称
|
|
141
182
|
*/
|
|
142
|
-
export
|
|
183
|
+
export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioUnmute' | 'videoMute' | 'videoUnmute' | 'subtitle' | string;
|
|
143
184
|
/**
|
|
144
185
|
* 轮询多画面状态
|
|
145
186
|
*
|
|
146
|
-
* @
|
|
147
|
-
* @
|
|
148
|
-
* @
|
|
149
|
-
* @
|
|
187
|
+
* @param 0 开始
|
|
188
|
+
* @param 1 停止
|
|
189
|
+
* @param 2 暂停
|
|
190
|
+
* @param 3 恢复
|
|
150
191
|
*/
|
|
151
|
-
export
|
|
192
|
+
export type TCommand = 0 | 1 | 2 | 3;
|
|
152
193
|
/**
|
|
153
194
|
* 设备类型
|
|
154
195
|
*/
|
|
155
|
-
|
|
196
|
+
type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
|
|
156
197
|
/**
|
|
157
198
|
* 是否禁止收听
|
|
158
199
|
*
|
|
159
|
-
* @
|
|
160
|
-
* @
|
|
161
|
-
* @
|
|
200
|
+
* @param 'keep' 保持上次的状态
|
|
201
|
+
* @param 'on' 禁止收听
|
|
202
|
+
* @param 'off' 取消禁止收听
|
|
162
203
|
*/
|
|
163
|
-
export
|
|
204
|
+
export type IMuteSpeaker = 'keep' | 'on' | 'off';
|
|
205
|
+
/**
|
|
206
|
+
* 画面布局模式
|
|
207
|
+
*
|
|
208
|
+
* @param AUTO - 自动布局
|
|
209
|
+
* @param CUSTOM - 自定义布局
|
|
210
|
+
*/
|
|
211
|
+
export declare enum LayoutMode {
|
|
212
|
+
AUTO = "AUTO",
|
|
213
|
+
CUSTOM = "CUSTOM"
|
|
214
|
+
}
|
|
164
215
|
/**
|
|
165
216
|
* 录制状态
|
|
166
217
|
*
|
|
167
|
-
* @
|
|
168
|
-
* @
|
|
169
|
-
* @
|
|
170
|
-
* @
|
|
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,6 +240,23 @@ 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
|
*
|
|
@@ -273,7 +341,7 @@ export interface ITemplateResolution {
|
|
|
273
341
|
* @property { number } zIndex - 层级
|
|
274
342
|
* @property { string } type - 类型,LOCAL/CONTENT
|
|
275
343
|
*/
|
|
276
|
-
export
|
|
344
|
+
export type ITemplateObj = {
|
|
277
345
|
position: number[];
|
|
278
346
|
resolution: ITemplateResolution;
|
|
279
347
|
quality?: VideoQuality;
|
|
@@ -300,7 +368,7 @@ export interface ITemplate {
|
|
|
300
368
|
*/
|
|
301
369
|
export interface IDefault {
|
|
302
370
|
CLIENT_TYPE: string;
|
|
303
|
-
|
|
371
|
+
INIT_INTERNALS: IInternals;
|
|
304
372
|
RESOLUTION: number;
|
|
305
373
|
ROSTER: IRoster;
|
|
306
374
|
SELF_MOCK_PID: number;
|
|
@@ -315,13 +383,14 @@ export interface IDefault {
|
|
|
315
383
|
RESOLUTION_MAP: {
|
|
316
384
|
[index: number]: number;
|
|
317
385
|
};
|
|
318
|
-
VIDE_BANDWIDTH_BIT:
|
|
386
|
+
VIDE_BANDWIDTH_BIT: number;
|
|
387
|
+
VIDE_FRAMERATE_BIT: number;
|
|
319
388
|
LOGIN_INFO: {
|
|
320
389
|
callUri: string;
|
|
321
390
|
securityKey: string;
|
|
322
391
|
access_token: string;
|
|
323
392
|
refresh_token: string;
|
|
324
|
-
id:
|
|
393
|
+
id: number;
|
|
325
394
|
displayName: string;
|
|
326
395
|
};
|
|
327
396
|
LAYOUT: ILayout;
|
|
@@ -347,6 +416,7 @@ export interface IDefault {
|
|
|
347
416
|
* @property { string } displayName 登录用户名
|
|
348
417
|
* @property { string } cellPhone 呼叫号码
|
|
349
418
|
* @property { string } extUserId 第三方用户ID
|
|
419
|
+
* @property { string } enterpriseId 企业ID
|
|
350
420
|
*/
|
|
351
421
|
export interface ILoginInfo {
|
|
352
422
|
callUri?: string;
|
|
@@ -357,6 +427,7 @@ export interface ILoginInfo {
|
|
|
357
427
|
displayName?: string;
|
|
358
428
|
cellPhone?: string;
|
|
359
429
|
extUserId?: string;
|
|
430
|
+
enterpriseId?: string;
|
|
360
431
|
}
|
|
361
432
|
export interface ICodeList {
|
|
362
433
|
version: string;
|
|
@@ -370,12 +441,14 @@ export interface ICodeList {
|
|
|
370
441
|
[key: string]: string;
|
|
371
442
|
};
|
|
372
443
|
}
|
|
373
|
-
export
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
444
|
+
export type OPERATE_MAP_VALUE = {
|
|
445
|
+
type: IVideoAudioMessageType;
|
|
446
|
+
reportEventType: string;
|
|
447
|
+
enabled: boolean;
|
|
448
|
+
};
|
|
449
|
+
export type IOPERATE_MAP = {
|
|
450
|
+
[key in OperateType]: OPERATE_MAP_VALUE;
|
|
451
|
+
};
|
|
379
452
|
/**
|
|
380
453
|
* 配置画面数据
|
|
381
454
|
*
|
|
@@ -386,7 +459,7 @@ export interface IMUTE_MAP {
|
|
|
386
459
|
* @property { boolean } isContent 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
|
|
387
460
|
* @property { string } callUri NewLayout版本无此参数
|
|
388
461
|
*/
|
|
389
|
-
export
|
|
462
|
+
export type IReqInfo = {
|
|
390
463
|
calluri: string;
|
|
391
464
|
resolution: StreamResolutionLevel;
|
|
392
465
|
quality: VideoQuality;
|
|
@@ -487,6 +560,24 @@ export interface ISdkUserInfo {
|
|
|
487
560
|
password: string;
|
|
488
561
|
extId?: string;
|
|
489
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* 授权码登录
|
|
565
|
+
*
|
|
566
|
+
* @property { string } extId 企业id
|
|
567
|
+
* @property { string } extUserId 用户id
|
|
568
|
+
* @property { string } displayName 用户名
|
|
569
|
+
* @property { string } oauthCode 授权码
|
|
570
|
+
* @property { boolean } isTempUser 是否是临时账号
|
|
571
|
+
* @property { string } channelId 渠道id
|
|
572
|
+
*/
|
|
573
|
+
export interface ILoginWidthAuthCode {
|
|
574
|
+
extId: string;
|
|
575
|
+
extUserId: string;
|
|
576
|
+
displayName: string;
|
|
577
|
+
oauthCode: string;
|
|
578
|
+
isTempUser: boolean;
|
|
579
|
+
channelId: string;
|
|
580
|
+
}
|
|
490
581
|
export interface IHttpConfig {
|
|
491
582
|
baseUrl: string;
|
|
492
583
|
}
|
|
@@ -665,29 +756,27 @@ export interface IMeetingControl {
|
|
|
665
756
|
/**
|
|
666
757
|
* Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
|
|
667
758
|
*
|
|
759
|
+
* @property { string } id 参会者唯一id,值为 endpointId + mediagroupid,用于区分一个人同时发送people+content画面数据
|
|
668
760
|
* @property { IDeviceType } deviceType 设备类型
|
|
669
761
|
* @property { string } endpointId 设备id
|
|
670
762
|
* @property { string } displayName 参会者名称
|
|
671
|
-
* @property {
|
|
763
|
+
* @property { number } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
|
|
672
764
|
* @property { number } participantId 参会者id
|
|
673
765
|
* @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
|
|
674
766
|
* @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
|
|
767
|
+
* @property { boolean } isForceFullScreen 参会者是否是主画面
|
|
768
|
+
* @property { number } videoMuteReason 视频关闭原因
|
|
769
|
+
* @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
|
|
770
|
+
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
771
|
+
* @property { boolean } isLocal 是否是Local设备
|
|
675
772
|
* @property { boolean } audioRxMute ignore
|
|
676
773
|
* @property { boolean } videoRxMute ignore
|
|
677
|
-
* @property {
|
|
678
|
-
* @property { boolean } isForceFullScreen 参会者是否是主画面
|
|
774
|
+
* @property { boolean } onHold ignore
|
|
679
775
|
* @property { boolean } isLastAdd ignore
|
|
680
|
-
* @property { boolean } onHold 参会者是否是被呼叫等待状态
|
|
681
776
|
* @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
777
|
*/
|
|
690
|
-
export interface IRoster {
|
|
778
|
+
export interface IRoster extends Partial<ILayoutRoster> {
|
|
779
|
+
id: string;
|
|
691
780
|
deviceType: IDeviceType;
|
|
692
781
|
endpointId: string;
|
|
693
782
|
displayName: string;
|
|
@@ -703,53 +792,62 @@ export interface IRoster {
|
|
|
703
792
|
onHold: boolean;
|
|
704
793
|
isPolling: boolean;
|
|
705
794
|
isContent: boolean;
|
|
706
|
-
isActiveSpeaker
|
|
707
|
-
id: string;
|
|
708
|
-
extUserId: string;
|
|
795
|
+
isActiveSpeaker: boolean;
|
|
709
796
|
isLocal?: boolean;
|
|
710
|
-
ExpectHeight?: number;
|
|
711
|
-
ExpectWidth?: number;
|
|
712
797
|
}
|
|
713
798
|
/**
|
|
714
799
|
* Layout Result布局结果中返回的基础数据
|
|
715
800
|
*
|
|
716
801
|
* @property { number } participantId 参会者id
|
|
717
802
|
* @property { 0 | 1 } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
|
|
718
|
-
* @property { number } feccOri ignore
|
|
719
803
|
* @property { string } remoteType 设备类型
|
|
720
804
|
* @property { string } remoteName 参会者名称
|
|
721
|
-
* @property { string } remoteID ignore
|
|
722
805
|
* @property { string } videoTrackId 当前参会者画面Track轨道id,用于在 VideoTrackList 中匹配stream数据
|
|
723
|
-
* @property { string } audioTrackId ignore
|
|
724
806
|
* @property { boolean } isAudioMute 参会者麦克风状态,true:开启,false:关闭
|
|
725
807
|
* @property { boolean } isVideoMute 参会者摄像头状态,true:开启,false:关闭
|
|
726
808
|
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
727
|
-
* @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
|
|
728
|
-
* @property { boolean } isChairman 参会者是否是主画面
|
|
729
|
-
* @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
|
|
730
809
|
* @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
|
|
731
|
-
* @property { number } MuteReason
|
|
810
|
+
* @property { number } MuteReason 视频关闭原因
|
|
811
|
+
* @property { number } extUserId 参会者ID
|
|
732
812
|
* @property { string } calluri 参会者Url
|
|
733
|
-
* @property {
|
|
813
|
+
* @property { number } ExpectHeight 期望分辨率
|
|
814
|
+
* @property { number } ExpectWidth 期望分辨率
|
|
815
|
+
* @property { number } feccOri ignore
|
|
734
816
|
*/
|
|
735
817
|
export interface ILayoutRoster {
|
|
736
818
|
participantId: number;
|
|
737
819
|
mediagroupid: number;
|
|
738
|
-
feccOri: number;
|
|
739
820
|
remoteType: string;
|
|
740
821
|
remoteName: string;
|
|
741
|
-
remoteID: string;
|
|
742
822
|
videoTrackId: string;
|
|
743
|
-
audioTrackId: string;
|
|
744
823
|
isAudioMute: boolean;
|
|
745
824
|
isVideoMute: boolean;
|
|
746
825
|
isActiveSpeaker: boolean;
|
|
747
|
-
isContent: boolean;
|
|
748
|
-
isChairman: boolean;
|
|
749
826
|
LayoutVideoState: number;
|
|
750
|
-
MuteReason:
|
|
751
|
-
|
|
752
|
-
|
|
827
|
+
MuteReason: MuteReason;
|
|
828
|
+
extUserId: string;
|
|
829
|
+
calluri: string;
|
|
830
|
+
ExpectHeight: number;
|
|
831
|
+
ExpectWidth: number;
|
|
832
|
+
feccOri: number;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* 视频关闭原因
|
|
836
|
+
*
|
|
837
|
+
* @param MuteByUser - 用户自己关闭
|
|
838
|
+
* @param MuteByBWLimit - 带宽限制
|
|
839
|
+
* @param MuteByNoInput - 没有视频输入
|
|
840
|
+
* @param MuteByConfMgmt - 会控关闭
|
|
841
|
+
* @param MuteByDeviceDetection - 设备探测
|
|
842
|
+
* @param MuteByPhoneCall - 电话占用
|
|
843
|
+
*/
|
|
844
|
+
export declare enum MuteReason {
|
|
845
|
+
MuteByUser = 0,
|
|
846
|
+
MuteByBWLimit = 1,
|
|
847
|
+
MuteByNoInput = 2,
|
|
848
|
+
MuteByConfMgmt = 3,
|
|
849
|
+
MuteByDeviceDetection = 4,
|
|
850
|
+
MuteByPhoneCall = 5
|
|
753
851
|
}
|
|
754
852
|
/**
|
|
755
853
|
* Conf Change消息
|
|
@@ -829,12 +927,13 @@ export interface ILayout {
|
|
|
829
927
|
deal?: boolean;
|
|
830
928
|
zIndex?: number;
|
|
831
929
|
avatar?: string;
|
|
930
|
+
textAvatar?: string;
|
|
832
931
|
index?: number;
|
|
833
932
|
}
|
|
834
933
|
/**
|
|
835
934
|
* Local布局对象
|
|
836
935
|
*
|
|
837
|
-
* @
|
|
936
|
+
* @implements ILayout
|
|
838
937
|
* @property { boolean } isLocal 是否是当前设备
|
|
839
938
|
*/
|
|
840
939
|
export interface ILocalLayout extends ILayout {
|
|
@@ -862,9 +961,9 @@ export interface IScreenInfo {
|
|
|
862
961
|
* @property { number } width 宽度
|
|
863
962
|
* @property { number } participantId 用户id
|
|
864
963
|
* @property { number } rotation 旋转角度
|
|
865
|
-
* @
|
|
866
|
-
* @
|
|
867
|
-
* @
|
|
964
|
+
* @param 0 | 1 不需要旋转
|
|
965
|
+
* @param 2 顺时针旋转180度
|
|
966
|
+
* @param 3 顺时针旋转270度
|
|
868
967
|
*/
|
|
869
968
|
export interface IRotationInfoItem {
|
|
870
969
|
height: number;
|
|
@@ -909,8 +1008,8 @@ export interface IRotationInfo {
|
|
|
909
1008
|
* @value 1 200
|
|
910
1009
|
* @value 3 300
|
|
911
1010
|
* @property { number } mediagroupid 当前流的类型:people/content
|
|
912
|
-
* @
|
|
913
|
-
* @
|
|
1011
|
+
* @param 0 people
|
|
1012
|
+
* @param 1 content
|
|
914
1013
|
*/
|
|
915
1014
|
export interface ICustomLayout {
|
|
916
1015
|
pid: number;
|
|
@@ -984,12 +1083,12 @@ export interface ISubTitleContent {
|
|
|
984
1083
|
scrollSpeed?: string;
|
|
985
1084
|
backgroundRGB?: string;
|
|
986
1085
|
}
|
|
987
|
-
export
|
|
1086
|
+
export type IAudioRenders = {
|
|
988
1087
|
[key: string]: {
|
|
989
1088
|
ele: any;
|
|
990
1089
|
};
|
|
991
1090
|
};
|
|
992
|
-
export
|
|
1091
|
+
export type IVideoRenders = {
|
|
993
1092
|
[key: string]: VideoManager & {
|
|
994
1093
|
match?: boolean;
|
|
995
1094
|
};
|
|
@@ -997,7 +1096,7 @@ export declare type IVideoRenders = {
|
|
|
997
1096
|
/**
|
|
998
1097
|
* 同传字幕: 本地支持的语言
|
|
999
1098
|
*/
|
|
1000
|
-
export
|
|
1099
|
+
export type TLocalLanguage = (typeof SupportLocalLanguages)[number];
|
|
1001
1100
|
export interface IOutputCustomLayout {
|
|
1002
1101
|
[pid: string]: {
|
|
1003
1102
|
resolution: number;
|
|
@@ -1063,18 +1162,16 @@ export interface ITrackInfo {
|
|
|
1063
1162
|
/**
|
|
1064
1163
|
* ws close reason
|
|
1065
1164
|
*/
|
|
1066
|
-
export
|
|
1165
|
+
export type TErrorReason<P = {}> = P & {
|
|
1067
1166
|
code?: number;
|
|
1068
1167
|
};
|
|
1069
1168
|
/**
|
|
1070
1169
|
* 是否静音
|
|
1071
1170
|
*
|
|
1072
|
-
* @
|
|
1073
|
-
*
|
|
1074
|
-
* @
|
|
1075
|
-
* @
|
|
1076
|
-
* @property {number} AutoMute.NOT 不静音
|
|
1077
|
-
* @property {number} AutoMute.FORCE 强制静音
|
|
1171
|
+
* @param SMART 0 - 智能静音
|
|
1172
|
+
* @param ALL 1 - 全部静音
|
|
1173
|
+
* @param NOT 2 - 不静音
|
|
1174
|
+
* @param FORCE 3 - 强制静音
|
|
1078
1175
|
*/
|
|
1079
1176
|
export declare enum AutoMute {
|
|
1080
1177
|
SMART = 0,
|
|
@@ -1226,7 +1323,8 @@ export interface IConfMgmtUrl {
|
|
|
1226
1323
|
pc: string;
|
|
1227
1324
|
member: string;
|
|
1228
1325
|
side: string;
|
|
1229
|
-
mobile
|
|
1326
|
+
mobile: string;
|
|
1327
|
+
professional: string;
|
|
1230
1328
|
}
|
|
1231
1329
|
/**
|
|
1232
1330
|
* 上报会控控制开启/关闭摄像头结果
|
|
@@ -1262,14 +1360,14 @@ export interface IEPMessage {
|
|
|
1262
1360
|
/**
|
|
1263
1361
|
* 会控开启/关闭摄像头消息、Toast提示消息
|
|
1264
1362
|
*/
|
|
1265
|
-
export
|
|
1363
|
+
export type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
|
|
1266
1364
|
/**
|
|
1267
1365
|
* 会控开关摄像头三个事件类型
|
|
1268
1366
|
* unMuteVideoQuery: 会控请求打开摄像头
|
|
1269
1367
|
* muteVideoQuery: 会控请求关闭摄像头
|
|
1270
1368
|
* toast: 主持会议的客户端收到的成功和失败提醒
|
|
1271
1369
|
*/
|
|
1272
|
-
export
|
|
1370
|
+
export type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
|
|
1273
1371
|
/**
|
|
1274
1372
|
* 会控开关摄像头事件基础消息体
|
|
1275
1373
|
*
|
|
@@ -1359,4 +1457,11 @@ export interface IWaitingState {
|
|
|
1359
1457
|
waitingState: number;
|
|
1360
1458
|
automute: string;
|
|
1361
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* 通知媒体网关:流能力集配置
|
|
1462
|
+
*/
|
|
1463
|
+
export interface IStreamCapability {
|
|
1464
|
+
streamId: string;
|
|
1465
|
+
resolution: StreamResolutionLevel;
|
|
1466
|
+
}
|
|
1362
1467
|
export {};
|