@xylink/xy-rtc-sdk 3.10.0-beta.4 → 100.0.0-beta.44
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 +30 -12
- package/build.config.json +10 -0
- package/lib/action/index.d.ts +57 -45
- package/lib/enum/analyser.d.ts +7 -0
- package/lib/enum/client.d.ts +8 -2
- package/lib/enum/constraints.d.ts +11 -16
- package/lib/enum/device.d.ts +0 -6
- package/lib/enum/errorCode.d.ts +5 -2
- package/lib/enum/index.d.ts +43 -5
- package/lib/enum/polling.d.ts +2 -0
- 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 -1
- package/lib/feature/{speaker.d.ts → speaker/index.d.ts} +29 -9
- package/lib/feature/speaker/index.type.d.ts +17 -0
- package/lib/index.d.ts +65 -28
- package/lib/interface/baseModule.type.d.ts +9 -0
- package/lib/interface/clientInterface.type.d.ts +83 -0
- package/lib/interface/contentTrackInterface.type.d.ts +15 -0
- package/lib/interface/event.type.d.ts +316 -0
- package/lib/interface/peopleTrackInterface.type.d.ts +17 -0
- package/lib/main/ability/const.d.ts +4 -1
- package/lib/main/ability/index.d.ts +7 -1
- package/lib/main/{auth.d.ts → auth/index.d.ts} +29 -19
- package/lib/main/client.d.ts +365 -595
- package/lib/main/clientBase.d.ts +38 -0
- package/lib/main/clientState.d.ts +56 -0
- package/lib/main/{deviceManager.d.ts → device/index.d.ts} +45 -13
- package/lib/{type/device.d.ts → main/device/index.type.d.ts} +65 -16
- package/lib/main/helper/index.d.ts +120 -0
- package/lib/main/layout/index.d.ts +118 -105
- package/lib/main/layout/index.type.d.ts +270 -0
- package/lib/main/layout/polling.d.ts +212 -0
- package/lib/main/layout/state.d.ts +163 -0
- package/lib/main/layout/template.d.ts +15 -7
- package/lib/main/media/index.d.ts +177 -0
- package/lib/main/media/index.type.d.ts +9 -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} +46 -7
- package/lib/main/meeting/verify.d.ts +69 -0
- package/lib/main/peer.d.ts +120 -41
- 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 +24 -0
- package/lib/main/{videoManager.d.ts → render/videoManager.d.ts} +78 -28
- 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 +161 -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 +243 -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 +30 -7
- 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 +62 -0
- package/lib/tools/emitter.d.ts +27 -6
- package/lib/tools/enum.d.ts +1 -1
- package/lib/tools/httpClient.d.ts +5 -1
- package/lib/tools/i18n.d.ts +1 -1
- package/lib/tools/index.d.ts +1 -8
- package/lib/tools/log/logger.d.ts +41 -21
- package/lib/tools/log/logger.worker.d.ts +1 -1
- package/lib/tools/log/loggerManager.d.ts +2 -2
- 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 +6 -0
- package/lib/tools/regex.d.ts +4 -0
- package/lib/tools/snapshot.d.ts +1 -1
- package/lib/tools/socket.d.ts +12 -2
- package/lib/tools/template/index.d.ts +11 -88
- package/lib/tools/template/mobile.d.ts +1 -1
- package/lib/tools/template/polling.d.ts +8 -0
- package/lib/tools/utils.d.ts +25 -16
- package/lib/tools/verify.d.ts +7 -0
- package/lib/type/ability.d.ts +1 -1
- package/lib/type/analyser.d.ts +26 -1
- package/lib/type/auth.d.ts +19 -19
- package/lib/type/base.d.ts +27 -31
- package/lib/type/capture.d.ts +9 -0
- package/lib/type/client.d.ts +178 -333
- package/lib/type/index.d.ts +22 -2
- package/lib/type/layout.d.ts +81 -45
- package/lib/type/logger.d.ts +19 -12
- package/lib/type/meeting.d.ts +101 -56
- package/lib/type/peer.d.ts +65 -1
- package/lib/type/polling.d.ts +194 -0
- package/lib/type/quality.d.ts +12 -2
- package/lib/type/socket.d.ts +0 -18
- package/lib/type/stream.d.ts +42 -24
- package/lib/type/track.d.ts +131 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +32 -52
- package/lib/main/clientImplements.d.ts +0 -99
- package/lib/main/helper.d.ts +0 -104
- package/lib/main/stream.d.ts +0 -418
- package/lib/tools/detect.d.ts +0 -44
package/lib/type/client.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IToken } from './base';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { AudioAnalyser } from '../tools/analyser';
|
|
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
|
+
import { ILayout, IRoster } from './index';
|
|
8
7
|
/**
|
|
9
8
|
* 向Client推送流类型
|
|
10
9
|
*
|
|
@@ -40,31 +39,23 @@ export type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
|
|
|
40
39
|
/**
|
|
41
40
|
* 分享Content内容的状态
|
|
42
41
|
*
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param PENDING
|
|
42
|
+
* @param INIT - 未开始
|
|
43
|
+
* @param CAPTURE - 采集中
|
|
44
|
+
* @param PENDING - 等待信令状态
|
|
45
|
+
* @param STARTING - 分享中
|
|
46
|
+
* @param SWITCHING - 切换新的分享中
|
|
47
|
+
* @param PAUSE - 暂停中
|
|
48
|
+
* @param ENDED - 已结束
|
|
46
49
|
*/
|
|
47
50
|
export declare enum ShareContentStatus {
|
|
48
|
-
'
|
|
51
|
+
'INIT' = "INIT",
|
|
52
|
+
'CAPTURE' = "CAPTURE",
|
|
53
|
+
'PENDING' = "PENDING",
|
|
49
54
|
'STARTING' = "STARTING",
|
|
50
|
-
'
|
|
55
|
+
'SWITCHING' = "SWITCHING",
|
|
56
|
+
'PAUSE' = "PAUSE",
|
|
57
|
+
'ENDED' = "ENDED"
|
|
51
58
|
}
|
|
52
|
-
/**
|
|
53
|
-
* VIDEO事件回调状态状态
|
|
54
|
-
*
|
|
55
|
-
* @param LOAD_START - 开始加载视频流
|
|
56
|
-
* @param CANPLAY - 可以播放
|
|
57
|
-
* @param ERROR - 错误
|
|
58
|
-
*/
|
|
59
|
-
export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
|
|
60
|
-
/**
|
|
61
|
-
* 视频画面状态
|
|
62
|
-
*
|
|
63
|
-
* @param CANPLAY 正常播放
|
|
64
|
-
* @param ENDED 已结束
|
|
65
|
-
* @param REQUEST 视频请求中
|
|
66
|
-
*/
|
|
67
|
-
export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
|
|
68
59
|
/**
|
|
69
60
|
* 客户端状态
|
|
70
61
|
*
|
|
@@ -119,18 +110,6 @@ export declare enum OperateType {
|
|
|
119
110
|
*/
|
|
120
111
|
export type IMediagroupid = 0 | 1;
|
|
121
112
|
export type IVideoAudioMessageType = 'AUDIO_MUTE' | 'VIDEO_MUTE' | 'AUDIO_UN_MUTE' | 'VIDEO_UN_MUTE';
|
|
122
|
-
/**
|
|
123
|
-
* 布局画面状态
|
|
124
|
-
*
|
|
125
|
-
* @param MUTE 视频暂停
|
|
126
|
-
* @param REQUEST 视频请求中
|
|
127
|
-
* @param NORMAL 视频正常
|
|
128
|
-
* @param INVALID 设备不可用
|
|
129
|
-
* @param AUDIO_TEL 电话入会
|
|
130
|
-
* @param AUDIO_ONLY 仅音频入会模式
|
|
131
|
-
* @param AUDIO_CONTENT 仅音频共享
|
|
132
|
-
*/
|
|
133
|
-
export type ILayoutState = 'MUTE' | 'REQUEST' | 'NORMAL' | 'INVALID' | 'AUDIO_TEL' | 'AUDIO_ONLY' | 'AUDIO_CONTENT';
|
|
134
113
|
/**
|
|
135
114
|
* 分享content类型
|
|
136
115
|
*
|
|
@@ -145,23 +124,6 @@ export declare enum ContentMode {
|
|
|
145
124
|
'VIDEO' = "VIDEO",
|
|
146
125
|
'BOTH' = "BOTH"
|
|
147
126
|
}
|
|
148
|
-
/**
|
|
149
|
-
* 埋点数据上报类型
|
|
150
|
-
*
|
|
151
|
-
* @param click 点击
|
|
152
|
-
* @param msgCallback 消息回调
|
|
153
|
-
* @param server server消息
|
|
154
|
-
* @param trigger 触发事件类型
|
|
155
|
-
*/
|
|
156
|
-
export type TStateAction = 'click' | 'msgCallback' | 'server' | 'trigger';
|
|
157
|
-
/**
|
|
158
|
-
* 埋点数据上报
|
|
159
|
-
*/
|
|
160
|
-
export type TCategory = 'sta-confStatus' | 'oper-confOperation' | 'sta-msgCallback' | 'oper-setting';
|
|
161
|
-
/**
|
|
162
|
-
* 事件名称
|
|
163
|
-
*/
|
|
164
|
-
export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioUnmute' | 'videoMute' | 'videoUnmute' | 'subtitle' | string;
|
|
165
127
|
/**
|
|
166
128
|
* 轮询多画面状态
|
|
167
129
|
*
|
|
@@ -171,10 +133,6 @@ export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioU
|
|
|
171
133
|
* @param 3 恢复
|
|
172
134
|
*/
|
|
173
135
|
export type TCommand = 0 | 1 | 2 | 3;
|
|
174
|
-
/**
|
|
175
|
-
* 设备类型
|
|
176
|
-
*/
|
|
177
|
-
type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
|
|
178
136
|
/**
|
|
179
137
|
* 是否禁止收听
|
|
180
138
|
*
|
|
@@ -183,6 +141,20 @@ type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo
|
|
|
183
141
|
* @param 'off' 取消禁止收听
|
|
184
142
|
*/
|
|
185
143
|
export type IMuteSpeaker = 'keep' | 'on' | 'off';
|
|
144
|
+
/**
|
|
145
|
+
* 全局会议状态
|
|
146
|
+
*
|
|
147
|
+
* @param UNKNOWN - 初始状态
|
|
148
|
+
* @param CONNECTING - 连接中状态
|
|
149
|
+
* @param ENDED - 结束状态
|
|
150
|
+
* @param CONNECTED - 连接成功状态
|
|
151
|
+
*/
|
|
152
|
+
export declare enum MeetingState {
|
|
153
|
+
UNKNOWN = "UNKNOWN",
|
|
154
|
+
CONNECTING = "CONNECTING",
|
|
155
|
+
ENDED = "ENDED",
|
|
156
|
+
CONNECTED = "CONNECTED"
|
|
157
|
+
}
|
|
186
158
|
/**
|
|
187
159
|
* 画面布局模式
|
|
188
160
|
*
|
|
@@ -222,7 +194,7 @@ export declare enum RecordStatus {
|
|
|
222
194
|
REMOTE_PAUSED = 3
|
|
223
195
|
}
|
|
224
196
|
/**
|
|
225
|
-
*
|
|
197
|
+
* 摄像头方向
|
|
226
198
|
*
|
|
227
199
|
* @param FRONT - 前置摄像头
|
|
228
200
|
* @param BACK - 后置摄像头
|
|
@@ -232,30 +204,36 @@ export declare enum FacingMode {
|
|
|
232
204
|
BACK = "BACK"
|
|
233
205
|
}
|
|
234
206
|
/**
|
|
235
|
-
*
|
|
207
|
+
* 摄像头方向
|
|
236
208
|
*
|
|
237
209
|
* @property 'FRONT' - 前置摄像头
|
|
238
210
|
* @property 'BACK' - 后置摄像头
|
|
239
211
|
*/
|
|
240
212
|
export type IFacingMode = keyof typeof FacingMode;
|
|
241
213
|
/**
|
|
242
|
-
*
|
|
214
|
+
* layout container容器节点和偏移量
|
|
243
215
|
*
|
|
244
|
-
* @property { string }
|
|
245
|
-
* @property {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
*
|
|
253
|
-
* @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
|
|
254
|
-
*
|
|
255
|
-
* @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
|
|
256
|
-
* @property { boolean } localHide 非必填 | false | 是否在页面上隐藏Local画面,默认不隐藏
|
|
257
|
-
* @property { boolean } localMirror 非必填 | true | 是否需要镜像Local画面,默认镜像Local
|
|
216
|
+
* @property { string } elementId - 可选,容器节点,配置Layout需要包裹在elementId元素里面显示,并使用此元素的信息计算 Layout 的 size和 position
|
|
217
|
+
* @property { number[] } offset - 可选,自动布局容器偏移量, [上 下 左 右],单位:px
|
|
218
|
+
*/
|
|
219
|
+
export interface XYClientContainer {
|
|
220
|
+
elementId?: string;
|
|
221
|
+
offset?: number[];
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* client配置参数
|
|
258
225
|
*
|
|
226
|
+
* @property { string } clientId - 必填,网关校验id,需要从对接人处获取
|
|
227
|
+
* @property { string } clientSecret - 必填,网关密钥,需要从对接人处获取
|
|
228
|
+
* @property { string } extId - 可选,企业ID
|
|
229
|
+
* @property { string } server - 可选,服务器地址, IP/域名 + 端口(可选),如: cloudapi.xylink.com
|
|
230
|
+
* @property { IClientLayout } layout - 可选,布局模式,默认值是Auto
|
|
231
|
+
* @property { XYClientContainer } container - 可选,配置布局容器节点和偏移量
|
|
232
|
+
* @property { boolean } isSupportHybridCloud - 可选,标识是否是混合云环境,默认值是false,代表不是混合云环境
|
|
233
|
+
* @property { boolean } debug - 可选,是否接收所有参会者音视频状态数据,默认值是false,代表关闭调试模式
|
|
234
|
+
* @property { boolean } checkSSL - 可选,是否需要检测SSL,默认值是true,代表启用检测SSL协议
|
|
235
|
+
* @property { any[] } plugin - 可选,注册插件
|
|
236
|
+
* @property { boolean } isThird - 忽略
|
|
259
237
|
*/
|
|
260
238
|
export interface IClientConfig {
|
|
261
239
|
clientId: string;
|
|
@@ -263,13 +241,12 @@ export interface IClientConfig {
|
|
|
263
241
|
extId?: string;
|
|
264
242
|
server?: string;
|
|
265
243
|
layout?: IClientLayout;
|
|
266
|
-
container?:
|
|
267
|
-
offset?: number[];
|
|
268
|
-
elementId?: string;
|
|
269
|
-
};
|
|
244
|
+
container?: XYClientContainer;
|
|
270
245
|
isThird?: boolean;
|
|
271
246
|
isSupportHybridCloud?: boolean;
|
|
272
247
|
debug?: boolean;
|
|
248
|
+
checkSSL?: boolean;
|
|
249
|
+
plugin?: any[];
|
|
273
250
|
}
|
|
274
251
|
export interface ILayoutParams {
|
|
275
252
|
rosters: IRoster[];
|
|
@@ -366,12 +343,12 @@ export type IOPERATE_MAP = {
|
|
|
366
343
|
/**
|
|
367
344
|
* 配置画面数据
|
|
368
345
|
*
|
|
369
|
-
* @property { string } calluri 设备url
|
|
370
|
-
* @property { StreamResolutionLevel } resolution 分辨率
|
|
371
|
-
* @property { VideoQuality } quality 质量
|
|
372
|
-
* @property { number } mediagroupid 0:people画面,1:content共享画面
|
|
373
|
-
* @property { boolean } isContent 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
|
|
374
|
-
* @property { string } callUri NewLayout版本无此参数
|
|
346
|
+
* @property { string } calluri - 设备url
|
|
347
|
+
* @property { StreamResolutionLevel } resolution - 分辨率
|
|
348
|
+
* @property { VideoQuality } quality - 质量
|
|
349
|
+
* @property { number } mediagroupid - 0:people画面,1:content共享画面
|
|
350
|
+
* @property { boolean } isContent - 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
|
|
351
|
+
* @property { string } callUri - NewLayout版本无此参数
|
|
375
352
|
*/
|
|
376
353
|
export type IReqInfo = {
|
|
377
354
|
calluri: string;
|
|
@@ -467,10 +444,12 @@ export interface LoginTokenInfo extends IToken {
|
|
|
467
444
|
/**
|
|
468
445
|
* 会议室配置信息
|
|
469
446
|
*
|
|
470
|
-
* @property { string } watermarkContent
|
|
447
|
+
* @property { string } watermarkContent - 叠加水印内容
|
|
448
|
+
* @property { WatermarkRange } watermarkRange - 水印范围,共享、全局
|
|
471
449
|
*/
|
|
472
450
|
export interface IConfAuxProperties {
|
|
473
451
|
watermarkContent: string;
|
|
452
|
+
watermarkRange: WatermarkRange;
|
|
474
453
|
}
|
|
475
454
|
/**
|
|
476
455
|
* 会议号信息
|
|
@@ -488,6 +467,7 @@ export interface IConfAuxProperties {
|
|
|
488
467
|
* @property { string } meetingId 当前会议ID
|
|
489
468
|
* @property { string } config 会议室配置
|
|
490
469
|
* @property { string } displayConfig 可见性配置
|
|
470
|
+
* @property { string } mpvc 点对点呼叫会议号
|
|
491
471
|
*/
|
|
492
472
|
export interface IConferenceInfo extends Partial<ConferenceProperties> {
|
|
493
473
|
callNumber?: string;
|
|
@@ -504,6 +484,7 @@ export interface IConferenceInfo extends Partial<ConferenceProperties> {
|
|
|
504
484
|
displayNum?: string;
|
|
505
485
|
config?: IConferenceConfig;
|
|
506
486
|
displayConfig?: IConferenceDisplayConfig;
|
|
487
|
+
mpvc?: string;
|
|
507
488
|
}
|
|
508
489
|
/**
|
|
509
490
|
* 会议室配置
|
|
@@ -567,17 +548,15 @@ export interface InviteInfo {
|
|
|
567
548
|
/**
|
|
568
549
|
* 呼叫参数
|
|
569
550
|
*
|
|
570
|
-
* @property { string }
|
|
571
|
-
* @property { string }
|
|
572
|
-
* @property { string? }
|
|
573
|
-
* @property {
|
|
574
|
-
* @property { boolean }
|
|
575
|
-
* @property {
|
|
576
|
-
* @property {
|
|
577
|
-
* @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
|
|
551
|
+
* @property { string } confNumber - 必填,云会议号/终端号/手机号
|
|
552
|
+
* @property { string? } password - 可选,入会密码,没有则为空
|
|
553
|
+
* @property { string? } displayName - 可选,入会昵称
|
|
554
|
+
* @property { boolean } muteAudio - 可选,是否开启/关闭麦克风入会,默认值是false,开启麦克风
|
|
555
|
+
* @property { boolean } muteVideo - 可选,是否开启/关闭摄像头入会,默认值是false,开启摄像头
|
|
556
|
+
* @property { number | string } __hideId - 可选,是否是隐身入会模式,默认值是空值,代表正常非隐身模式
|
|
557
|
+
* @property { string } __monitorMode - 可选,是否是巡课模式,默认值是空字符,MONITOR代表巡课模式
|
|
578
558
|
*/
|
|
579
559
|
export interface IMackCall {
|
|
580
|
-
token: string;
|
|
581
560
|
confNumber: string;
|
|
582
561
|
password?: string;
|
|
583
562
|
displayName?: string;
|
|
@@ -629,6 +608,16 @@ export interface IGroupInfo {
|
|
|
629
608
|
groupName: string;
|
|
630
609
|
groupType: number;
|
|
631
610
|
}
|
|
611
|
+
/**
|
|
612
|
+
* 会议模式
|
|
613
|
+
*
|
|
614
|
+
* @param DIALOG - 对话模式
|
|
615
|
+
* @param NORMAL - 非对话模式
|
|
616
|
+
*/
|
|
617
|
+
export declare enum ConferenceMode {
|
|
618
|
+
DIALOG = "dialog",
|
|
619
|
+
NORMAL = "normal"
|
|
620
|
+
}
|
|
632
621
|
/**
|
|
633
622
|
* 会控回调信息
|
|
634
623
|
*
|
|
@@ -643,6 +632,9 @@ export interface IGroupInfo {
|
|
|
643
632
|
* @property { string } commonJson 会控修改名称等
|
|
644
633
|
* @property { IMuteSpeaker } isMuteSpeaker 禁止收听
|
|
645
634
|
* @property { boolean } recordIsDisabled 录制权限
|
|
635
|
+
* @property { IGroupInfo[] } groupInfoList 分组会议信息
|
|
636
|
+
* @property { ConferenceMode } conferenceMode 会议模式
|
|
637
|
+
* @property { string } customizedLayout 轮询多画面控制Json字符串
|
|
646
638
|
*/
|
|
647
639
|
export interface IMeetingControl {
|
|
648
640
|
callIndex: number;
|
|
@@ -657,115 +649,22 @@ export interface IMeetingControl {
|
|
|
657
649
|
isMuteSpeaker: IMuteSpeaker;
|
|
658
650
|
recordIsDisabled: boolean;
|
|
659
651
|
groupInfoList: IGroupInfo[];
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
* Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
|
|
663
|
-
*
|
|
664
|
-
* @property { string } id 参会者唯一ID
|
|
665
|
-
* @property { IDeviceType } deviceType 设备类型
|
|
666
|
-
* @property { string } endpointId 设备id
|
|
667
|
-
* @property { string } displayName 参会者名称
|
|
668
|
-
* @property { number } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
|
|
669
|
-
* @property { number } participantId 参会者id
|
|
670
|
-
* @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
|
|
671
|
-
* @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
|
|
672
|
-
* @property { boolean } isForceFullScreen 参会者是否是主画面
|
|
673
|
-
* @property { number } videoMuteReason 视频关闭原因
|
|
674
|
-
* @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
|
|
675
|
-
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
676
|
-
* @property { boolean } isLocal 是否是Local设备
|
|
677
|
-
* @property { boolean } audioRxMute ignore
|
|
678
|
-
* @property { boolean } videoRxMute ignore
|
|
679
|
-
* @property { boolean } onHold ignore
|
|
680
|
-
* @property { boolean } isLastAdd ignore
|
|
681
|
-
* @property { boolean } isPolling ignore
|
|
682
|
-
*/
|
|
683
|
-
export interface IRoster extends Partial<ILayoutRoster> {
|
|
684
|
-
id: string;
|
|
685
|
-
deviceType: IDeviceType;
|
|
686
|
-
endpointId: string;
|
|
687
|
-
displayName: string;
|
|
688
|
-
mediagroupid: number;
|
|
689
|
-
participantId: number;
|
|
690
|
-
audioTxMute: boolean;
|
|
691
|
-
videoTxMute: boolean;
|
|
692
|
-
audioRxMute: boolean;
|
|
693
|
-
videoRxMute: boolean;
|
|
694
|
-
videoMuteReason: number;
|
|
695
|
-
isForceFullScreen: boolean;
|
|
696
|
-
isLastAdd: boolean;
|
|
697
|
-
onHold: boolean;
|
|
698
|
-
isPolling: boolean;
|
|
699
|
-
isContent: boolean;
|
|
700
|
-
isActiveSpeaker: boolean;
|
|
701
|
-
isLocal?: boolean;
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* Layout Result布局结果中返回的基础数据
|
|
705
|
-
*
|
|
706
|
-
* @property { number } participantId 参会者id
|
|
707
|
-
* @property { 0 | 1 } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
|
|
708
|
-
* @property { string } remoteType 设备类型
|
|
709
|
-
* @property { string } remoteName 参会者名称
|
|
710
|
-
* @property { string } videoTrackId 当前参会者画面Track轨道id,用于在 VideoTrackList 中匹配stream数据
|
|
711
|
-
* @property { boolean } isAudioMute 参会者麦克风状态,true:开启,false:关闭
|
|
712
|
-
* @property { boolean } isVideoMute 参会者摄像头状态,true:开启,false:关闭
|
|
713
|
-
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
714
|
-
* @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
|
|
715
|
-
* @property { number } MuteReason 视频关闭原因
|
|
716
|
-
* @property { number } extUserId 参会者ID
|
|
717
|
-
* @property { string } calluri 参会者Url
|
|
718
|
-
* @property { number } ExpectHeight 期望分辨率
|
|
719
|
-
* @property { number } ExpectWidth 期望分辨率
|
|
720
|
-
* @property { number } feccOri ignore
|
|
721
|
-
*/
|
|
722
|
-
export interface ILayoutRoster {
|
|
723
|
-
participantId: number;
|
|
724
|
-
mediagroupid: number;
|
|
725
|
-
remoteType: string;
|
|
726
|
-
remoteName: string;
|
|
727
|
-
videoTrackId: string;
|
|
728
|
-
isAudioMute: boolean;
|
|
729
|
-
isVideoMute: boolean;
|
|
730
|
-
isActiveSpeaker: boolean;
|
|
731
|
-
LayoutVideoState: number;
|
|
732
|
-
MuteReason: MuteReason;
|
|
733
|
-
extUserId: string;
|
|
734
|
-
calluri: string;
|
|
735
|
-
ExpectHeight: number;
|
|
736
|
-
ExpectWidth: number;
|
|
737
|
-
feccOri: number;
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* 视频关闭原因
|
|
741
|
-
*
|
|
742
|
-
* @param MuteByUser - 用户自己关闭
|
|
743
|
-
* @param MuteByBWLimit - 带宽限制
|
|
744
|
-
* @param MuteByNoInput - 没有视频输入
|
|
745
|
-
* @param MuteByConfMgmt - 会控关闭
|
|
746
|
-
* @param MuteByDeviceDetection - 设备探测
|
|
747
|
-
* @param MuteByPhoneCall - 电话占用
|
|
748
|
-
*/
|
|
749
|
-
export declare enum MuteReason {
|
|
750
|
-
MuteByUser = 0,
|
|
751
|
-
MuteByBWLimit = 1,
|
|
752
|
-
MuteByNoInput = 2,
|
|
753
|
-
MuteByConfMgmt = 3,
|
|
754
|
-
MuteByDeviceDetection = 4,
|
|
755
|
-
MuteByPhoneCall = 5
|
|
652
|
+
conferenceMode: ConferenceMode;
|
|
653
|
+
customizedLayout: string;
|
|
756
654
|
}
|
|
757
655
|
/**
|
|
758
656
|
* Conf Change消息
|
|
759
657
|
*
|
|
760
|
-
* @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量,包含local
|
|
761
|
-
* @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
|
|
762
|
-
* @property { string } chairManUrl
|
|
763
|
-
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
764
|
-
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
765
|
-
* @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
766
|
-
* @property {
|
|
767
|
-
* @property { number }
|
|
768
|
-
* @property { number }
|
|
658
|
+
* @property { number } participantCount - 当前会议参会者总人数,不包含共享内容设备数量,包含local
|
|
659
|
+
* @property { number } totalEpCount - 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
|
|
660
|
+
* @property { string } chairManUrl - 当前主画面设备的callUrl,没有为''
|
|
661
|
+
* @property { string } contentUri - 当前会议共享内容设别的callUrl,没有为''
|
|
662
|
+
* @property { string } actSpkUri - 当前会议语音激励者的callUrl,没有为''
|
|
663
|
+
* @property { IMediaGroupInfo[] } mediaGroupnfo - 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
664
|
+
* @property { ChairManReason } ChairManReason - 主画面对应的模式,默认是主会场模式
|
|
665
|
+
* @property { number } onHoldCount - 等候室人数
|
|
666
|
+
* @property { number } audioTxUnMuteEpCount - 未静音人数
|
|
667
|
+
* @property { number } videoTxUnMuteEpCount - 未关闭摄像头人数
|
|
769
668
|
*/
|
|
770
669
|
export interface IConfInfo {
|
|
771
670
|
participantCount: number;
|
|
@@ -777,6 +676,13 @@ export interface IConfInfo {
|
|
|
777
676
|
onHoldCount?: number;
|
|
778
677
|
audioTxUnMuteEpCount?: number;
|
|
779
678
|
videoTxUnMuteEpCount?: number;
|
|
679
|
+
chairManReason: ChairManReason;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* 缓存Conf Change消息
|
|
683
|
+
*/
|
|
684
|
+
export interface IPreConfInfo extends IConfInfo {
|
|
685
|
+
isChairmanMode?: boolean;
|
|
780
686
|
}
|
|
781
687
|
export interface IMediaGroupInfo {
|
|
782
688
|
endpointCount: number;
|
|
@@ -804,58 +710,6 @@ export interface ISpeakerInfo {
|
|
|
804
710
|
endpointId: string;
|
|
805
711
|
pid: number;
|
|
806
712
|
}
|
|
807
|
-
/**
|
|
808
|
-
* 头像
|
|
809
|
-
*
|
|
810
|
-
* @property { LayoutAvatarType } type - 头像类型,名称头像、人物头像
|
|
811
|
-
* @property { string } value - 内容
|
|
812
|
-
*/
|
|
813
|
-
export interface LayoutAvatar {
|
|
814
|
-
type: LayoutAvatarType;
|
|
815
|
-
value: string;
|
|
816
|
-
}
|
|
817
|
-
/**
|
|
818
|
-
* 布局对象
|
|
819
|
-
*
|
|
820
|
-
* @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
|
|
821
|
-
* @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
|
|
822
|
-
* @property { IRotateStyle | null } rotate 当前参会者的旋转信息,用于设置video标签样式
|
|
823
|
-
* @property { IRotationInfoTotalItem | null } rotationInfo 当前参会者的旋转信息
|
|
824
|
-
* @property { { left: string; top: string; width: string; height: string } } positionStyle 当前参会者的位置样式
|
|
825
|
-
* @property { LayoutAvatar | null } avatar 头像, 如未在setFeatureConfig配置相关参数,则返回null
|
|
826
|
-
* @property { boolean } isMirror 是否是镜像画面
|
|
827
|
-
* @property { ExternalTemplateConfig } templateConfig 忽略
|
|
828
|
-
* @property { { width: number; height: number } } positionInfo 忽略
|
|
829
|
-
* @property { number[] } position 忽略
|
|
830
|
-
* @property { boolean } deal 忽略
|
|
831
|
-
* @property { number } index 忽略
|
|
832
|
-
* @property { number } resolution 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
833
|
-
* @property { number } quality 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
834
|
-
*/
|
|
835
|
-
export interface ILayout {
|
|
836
|
-
roster: IRoster;
|
|
837
|
-
state: ILayoutState;
|
|
838
|
-
rotate: IRotateStyle | null;
|
|
839
|
-
rotationInfo: IRotationInfoTotalItem | null;
|
|
840
|
-
avatar: LayoutAvatar | null;
|
|
841
|
-
positionStyle?: {
|
|
842
|
-
left: string;
|
|
843
|
-
top: string;
|
|
844
|
-
width: string;
|
|
845
|
-
height: string;
|
|
846
|
-
};
|
|
847
|
-
isMirror?: boolean;
|
|
848
|
-
templateConfig?: ExternalTemplateConfig;
|
|
849
|
-
position?: number[];
|
|
850
|
-
positionInfo?: {
|
|
851
|
-
width: number;
|
|
852
|
-
height: number;
|
|
853
|
-
};
|
|
854
|
-
deal?: boolean;
|
|
855
|
-
index?: number;
|
|
856
|
-
resolution?: number;
|
|
857
|
-
quality?: number;
|
|
858
|
-
}
|
|
859
713
|
/**
|
|
860
714
|
* Local布局对象
|
|
861
715
|
*
|
|
@@ -880,45 +734,6 @@ export interface IScreenInfo {
|
|
|
880
734
|
rateWidth: number;
|
|
881
735
|
rateHeight: number;
|
|
882
736
|
}
|
|
883
|
-
/**
|
|
884
|
-
* 画面屏幕旋转信息
|
|
885
|
-
*
|
|
886
|
-
* @property { number } height 高度
|
|
887
|
-
* @property { number } width 宽度
|
|
888
|
-
* @property { number } participantId 用户id
|
|
889
|
-
* @property { number } rotation 旋转角度
|
|
890
|
-
* @param 0 | 1 不需要旋转
|
|
891
|
-
* @param 2 顺时针旋转180度
|
|
892
|
-
* @param 3 顺时针旋转270度
|
|
893
|
-
*/
|
|
894
|
-
export interface IRotationInfoItem {
|
|
895
|
-
height: number;
|
|
896
|
-
width: number;
|
|
897
|
-
participantId: number;
|
|
898
|
-
rotation: number;
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* 缓存content+people的屏幕旋转信息数据
|
|
902
|
-
*
|
|
903
|
-
* @property { number } mediagroupid 画面类型:people/content
|
|
904
|
-
* @property { string } id 用户id
|
|
905
|
-
*/
|
|
906
|
-
export interface IRotationInfoTotalItem extends IRotationInfoItem {
|
|
907
|
-
mediagroupid: number;
|
|
908
|
-
id: string;
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* 缓存媒体下发的屏幕旋转信息
|
|
912
|
-
*
|
|
913
|
-
* @property { IRotationInfoItem[] } content content共享内容的旋转信息
|
|
914
|
-
* @property { IRotationInfoItem[] } people people的旋转信息
|
|
915
|
-
* @property { IRotationInfoTotalItem[] } total content+people的旋转信息
|
|
916
|
-
*/
|
|
917
|
-
export interface IRotationInfo {
|
|
918
|
-
content: IRotationInfoItem[];
|
|
919
|
-
people: IRotationInfoItem[];
|
|
920
|
-
total: IRotationInfoTotalItem[];
|
|
921
|
-
}
|
|
922
737
|
/**
|
|
923
738
|
* 自定义布局请流对象数据
|
|
924
739
|
*
|
|
@@ -1009,16 +824,6 @@ export interface ISubTitleContent {
|
|
|
1009
824
|
scrollSpeed?: string;
|
|
1010
825
|
backgroundRGB?: string;
|
|
1011
826
|
}
|
|
1012
|
-
export type IAudioRenders = {
|
|
1013
|
-
[key: string]: {
|
|
1014
|
-
ele: any;
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
export type IVideoRenders = {
|
|
1018
|
-
[key: string]: VideoManager & {
|
|
1019
|
-
match?: boolean;
|
|
1020
|
-
};
|
|
1021
|
-
};
|
|
1022
827
|
/**
|
|
1023
828
|
* 同传字幕: 本地支持的语言
|
|
1024
829
|
*/
|
|
@@ -1092,27 +897,19 @@ export type TErrorReason<P = {}> = P & {
|
|
|
1092
897
|
code?: number;
|
|
1093
898
|
};
|
|
1094
899
|
/**
|
|
1095
|
-
*
|
|
900
|
+
* 录制相关信息
|
|
1096
901
|
*
|
|
1097
|
-
* @
|
|
1098
|
-
* @param ALL 1 - 全部静音
|
|
1099
|
-
* @param NOT 2 - 不静音
|
|
1100
|
-
* @param FORCE 3 - 强制静音
|
|
902
|
+
* @property { string } recordSessionId - sessionId
|
|
1101
903
|
*/
|
|
1102
|
-
export
|
|
1103
|
-
|
|
1104
|
-
ALL = 1,
|
|
1105
|
-
NOT = 2,
|
|
1106
|
-
FORCE = 3
|
|
1107
|
-
}
|
|
1108
|
-
export interface IGetConferenceParams {
|
|
1109
|
-
autoMute: AutoMute;
|
|
904
|
+
export interface IRecordInfo {
|
|
905
|
+
recordSessionId: string;
|
|
1110
906
|
}
|
|
1111
907
|
/**
|
|
1112
908
|
* 本地录制结果上报
|
|
1113
909
|
*
|
|
1114
910
|
* @property { string } reason - 成功STATE:200
|
|
1115
911
|
* @property { RecordingState } state - 录制状态
|
|
912
|
+
* @property { string } recordInfo - 录制相关信息
|
|
1116
913
|
* @property { boolean } isRecorded - ignore
|
|
1117
914
|
* @property { string } controlUri - ignore
|
|
1118
915
|
* @property { string } reasonText - ignore
|
|
@@ -1120,6 +917,7 @@ export interface IGetConferenceParams {
|
|
|
1120
917
|
export interface IRecordingStateChanged {
|
|
1121
918
|
reason: string;
|
|
1122
919
|
state: RecordingState;
|
|
920
|
+
recordInfo: IRecordInfo;
|
|
1123
921
|
isRecorded: boolean;
|
|
1124
922
|
controlUri: string;
|
|
1125
923
|
reasonText: string;
|
|
@@ -1141,6 +939,7 @@ export interface IRecordStatusNotification {
|
|
|
1141
939
|
callerUri: string;
|
|
1142
940
|
status: string;
|
|
1143
941
|
isLocal: boolean;
|
|
942
|
+
recordInfo: IRecordInfo;
|
|
1144
943
|
}
|
|
1145
944
|
/**
|
|
1146
945
|
* 录制权限
|
|
@@ -1372,37 +1171,28 @@ export interface unMuteVideoQueryToast {
|
|
|
1372
1171
|
* @property { string } name - 讲话者名称
|
|
1373
1172
|
* @property { number } pid - pid
|
|
1374
1173
|
* @property { string } endpointId - 用户标识ID
|
|
1375
|
-
* @property { string } trackId -
|
|
1174
|
+
* @property { string } trackId - 媒体网关分配的轨道ID(对应的是将-ad-转化为-st-之后的stream数据)
|
|
1376
1175
|
* @property { boolean } isLocal - 是否是Local设备
|
|
1377
1176
|
* @property { number } level - 音量等级
|
|
1378
|
-
* @property { string } id -
|
|
1177
|
+
* @property { string } id - 参会者Roster ID,通过roster数据获取
|
|
1379
1178
|
*/
|
|
1380
|
-
export interface
|
|
1179
|
+
export interface SpeakersInfoItem {
|
|
1381
1180
|
alias: string;
|
|
1382
1181
|
name: string;
|
|
1383
1182
|
pid: number;
|
|
1183
|
+
id: string;
|
|
1384
1184
|
endpointId?: string;
|
|
1385
1185
|
trackId?: string;
|
|
1386
1186
|
isLocal?: boolean;
|
|
1387
1187
|
level?: number;
|
|
1388
|
-
id?: string;
|
|
1389
|
-
}
|
|
1390
|
-
/**
|
|
1391
|
-
* 实时讲话人内部数据
|
|
1392
|
-
*/
|
|
1393
|
-
export interface SpeakerInternalData {
|
|
1394
|
-
stream: MediaStream | null;
|
|
1395
|
-
analyser: AudioAnalyser | null;
|
|
1396
|
-
timestamp: number;
|
|
1397
1188
|
}
|
|
1398
1189
|
/**
|
|
1399
1190
|
* 实时讲话人消息体
|
|
1400
1191
|
*
|
|
1401
1192
|
* @property { speakersInfoObj[] } speakersInfo - 讲话者信息
|
|
1402
|
-
*
|
|
1403
1193
|
*/
|
|
1404
1194
|
export interface SpeakersInfo {
|
|
1405
|
-
speakersInfo:
|
|
1195
|
+
speakersInfo: SpeakersInfoItem[];
|
|
1406
1196
|
}
|
|
1407
1197
|
/**
|
|
1408
1198
|
* 等候室状态
|
|
@@ -1421,15 +1211,61 @@ export interface IStreamCapability {
|
|
|
1421
1211
|
streamId: string;
|
|
1422
1212
|
resolution: StreamResolutionLevel;
|
|
1423
1213
|
}
|
|
1214
|
+
/**
|
|
1215
|
+
* 焦点画面动作
|
|
1216
|
+
*
|
|
1217
|
+
* @param START - 指定焦点画面
|
|
1218
|
+
* @param STOP - 取消焦点画面
|
|
1219
|
+
*/
|
|
1220
|
+
export declare enum FocusViewAction {
|
|
1221
|
+
START = "start",
|
|
1222
|
+
STOP = "stop"
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* 上报终端状态-事件类型
|
|
1226
|
+
*/
|
|
1227
|
+
export declare enum StateCategory {
|
|
1228
|
+
STA_CONFSTATUS = "sta-confStatus",
|
|
1229
|
+
OPER_CONFOPERATION = "oper-confOperation",
|
|
1230
|
+
STA_MSGCALLBACK = "sta-msgCallback",
|
|
1231
|
+
OPER_SETTING = "oper-setting"
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* 上报终端状态-事件名称
|
|
1235
|
+
*/
|
|
1236
|
+
export declare enum StateEventName {
|
|
1237
|
+
CALL_IN = "callIn",
|
|
1238
|
+
LAYOUT = "layout",
|
|
1239
|
+
CONTENT = "content",
|
|
1240
|
+
AUDIO_MUTE = "audioMute",
|
|
1241
|
+
AUDIO_UNMUTE = "audioUnmute",
|
|
1242
|
+
VIDEO_MUTE = "videoMute",
|
|
1243
|
+
VIDEO_UNMUTE = "videoUnmute",
|
|
1244
|
+
SUBTITLE = "subtitle",
|
|
1245
|
+
COMPLEX_CAPABILITIES = "complexCapabilities",
|
|
1246
|
+
MMS_CAPABILITIES = "mmsCapabilities"
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* 上报终端状态参数
|
|
1250
|
+
*
|
|
1251
|
+
* @property { StateCategory } category - 事件类型
|
|
1252
|
+
* @property { StateEventName } eventName - 事件名称
|
|
1253
|
+
* @property { Object } params - 事件详细数据
|
|
1254
|
+
*/
|
|
1255
|
+
export interface IStateParams {
|
|
1256
|
+
category: StateCategory;
|
|
1257
|
+
eventName: StateEventName;
|
|
1258
|
+
params?: Object;
|
|
1259
|
+
}
|
|
1424
1260
|
/**
|
|
1425
1261
|
* 截图参数
|
|
1426
1262
|
*
|
|
1427
|
-
* @property { string }
|
|
1263
|
+
* @property { string } id - 参会者Layout Id,通过layout事件列表获取
|
|
1428
1264
|
* @property { string } imageType - 图片格式, 默认'image/png'
|
|
1429
1265
|
* @property { number } compressLevel - 图片质量,0-1
|
|
1430
1266
|
*/
|
|
1431
1267
|
export interface SnapshotParams {
|
|
1432
|
-
|
|
1268
|
+
id: string;
|
|
1433
1269
|
imageType?: string;
|
|
1434
1270
|
compressLevel?: number;
|
|
1435
1271
|
}
|
|
@@ -1467,4 +1303,13 @@ export interface SnapshotResult {
|
|
|
1467
1303
|
export interface LocalViewParams {
|
|
1468
1304
|
isMirror: boolean;
|
|
1469
1305
|
}
|
|
1470
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* 视频配置
|
|
1308
|
+
*
|
|
1309
|
+
* @property { StreamResolution } maxResolution - 视频最大分辨率
|
|
1310
|
+
* @property { StreamFrameRate } maxFrameRate - 视频最大帧率
|
|
1311
|
+
*/
|
|
1312
|
+
export interface IVideoProfile {
|
|
1313
|
+
maxResolution?: StreamResolution;
|
|
1314
|
+
maxFrameRate?: StreamFrameRate;
|
|
1315
|
+
}
|