@xylink/xy-rtc-sdk 3.9.1 → 3.10.0-beta.4
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 +101 -19
- package/lib/enum/client.d.ts +1 -1
- package/lib/enum/{contraints.d.ts → constraints.d.ts} +6 -0
- package/lib/enum/device.d.ts +34 -0
- package/lib/enum/errorCode.d.ts +7 -1
- package/lib/enum/i18n.d.ts +6 -0
- package/lib/enum/index.d.ts +60 -6
- package/lib/enum/meeting.d.ts +4 -0
- package/lib/feature/index.d.ts +1 -0
- package/lib/feature/speaker.d.ts +61 -0
- package/lib/index.d.ts +11 -10
- package/lib/main/ability/const.d.ts +2 -0
- package/lib/main/ability/index.d.ts +31 -0
- package/lib/main/{iauth.d.ts → auth.d.ts} +8 -8
- package/lib/main/client.d.ts +191 -99
- package/lib/main/clientImplements.d.ts +99 -0
- package/lib/main/deviceManager.d.ts +150 -93
- package/lib/main/helper.d.ts +62 -9
- package/lib/main/layout/index.d.ts +67 -31
- package/lib/main/meeting.d.ts +32 -26
- package/lib/main/peer.d.ts +3 -1
- package/lib/main/stream.d.ts +47 -21
- package/lib/main/videoManager.d.ts +95 -12
- package/lib/tools/{audioLevel.d.ts → analyser.d.ts} +11 -4
- package/lib/tools/browser.d.ts +2 -0
- package/lib/tools/httpClient.d.ts +27 -6
- package/lib/tools/index.d.ts +12 -5
- package/lib/tools/{logger.d.ts → log/logger.d.ts} +18 -7
- package/lib/tools/log/loggerManager.d.ts +69 -0
- package/lib/tools/promiseQueue.d.ts +45 -0
- package/lib/tools/queue.d.ts +12 -15
- package/lib/tools/resize.d.ts +62 -0
- package/lib/tools/snapshot.d.ts +31 -0
- package/lib/tools/socket.d.ts +99 -32
- package/lib/tools/utils.d.ts +13 -5
- package/lib/type/ability.d.ts +25 -0
- package/lib/type/analyser.d.ts +18 -0
- package/lib/type/{iauth.d.ts → auth.d.ts} +0 -7
- package/lib/type/base.d.ts +16 -0
- package/lib/type/client.d.ts +154 -74
- package/lib/type/device.d.ts +103 -31
- package/lib/type/index.d.ts +3 -1
- package/lib/type/layout.d.ts +34 -0
- package/lib/type/logger.d.ts +19 -1
- package/lib/type/meeting.d.ts +294 -10
- package/lib/type/socket.d.ts +60 -0
- package/lib/type/stream.d.ts +20 -12
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +7 -5
- /package/lib/tools/{logger.worker.d.ts → log/logger.worker.d.ts} +0 -0
package/lib/type/meeting.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Meeting Lib Type Defined
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2022-10-27 18:13:24
|
|
5
|
-
* Last modified :
|
|
5
|
+
* Last modified : 2023-11-03 11:34:35
|
|
6
6
|
*/
|
|
7
7
|
import { ILoginInfo } from './client';
|
|
8
8
|
import { LayoutAvatarType } from './layout';
|
|
@@ -41,14 +41,16 @@ export interface IConfCallInfo {
|
|
|
41
41
|
* 个人云会议室信息
|
|
42
42
|
* 默认只保存了部分信息
|
|
43
43
|
*
|
|
44
|
-
* @property { string
|
|
45
|
-
* @property { string
|
|
46
|
-
* @property { string
|
|
44
|
+
* @property { string } meetingControlPassword 会控密码
|
|
45
|
+
* @property { string } meetingNumber 个人云会议室号码
|
|
46
|
+
* @property { string } password 入会密码
|
|
47
|
+
* @property { string? } isMeetingOwner 是否是会议室Owner
|
|
47
48
|
*/
|
|
48
49
|
export interface ICloudRoomConfig {
|
|
49
50
|
meetingControlPassword: string;
|
|
50
51
|
meetingNumber: string;
|
|
51
52
|
password: string;
|
|
53
|
+
isMeetingOwner?: boolean;
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* 用户和对应个人云会议室信息数据
|
|
@@ -56,17 +58,35 @@ export interface ICloudRoomConfig {
|
|
|
56
58
|
export interface IExportUserInfo extends ILoginInfo {
|
|
57
59
|
cloudRoomInfo: ICloudRoomConfig;
|
|
58
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 会议上行和下行方向
|
|
63
|
+
*
|
|
64
|
+
* @property DOWNLINK - 下行方向
|
|
65
|
+
* @property UPLINK - 上行方向
|
|
66
|
+
* @property ALL - 上行+下行方向
|
|
67
|
+
*/
|
|
68
|
+
export declare enum MEETING_DIRECTION {
|
|
69
|
+
DOWNLINK = 0,
|
|
70
|
+
UPLINK = 1,
|
|
71
|
+
ALL = 2
|
|
72
|
+
}
|
|
59
73
|
/**
|
|
60
74
|
* 媒体能力配置
|
|
61
75
|
*
|
|
62
|
-
* @property {
|
|
63
|
-
* @property {
|
|
64
|
-
* @property { StreamResolution }
|
|
76
|
+
* @property { StreamResolution } peopleRecResolution - 控制People接收分辨率
|
|
77
|
+
* @property { StreamResolution } peopleSendResolution - 控制People发送分辨率
|
|
78
|
+
* @property { StreamResolution } contentRecResolution - 控制Content发送分辨率
|
|
79
|
+
* @property { StreamResolution } contentSendResolution - 控制Content发送分辨率
|
|
80
|
+
* @property { number } downLinkRate - 控制下行带宽,值类似:1920
|
|
81
|
+
* @property { number } upLinkRate - 控制上行带宽,值类似:128;该字段不存在时或者配置为0时,取默认值3000000(3M)
|
|
65
82
|
*/
|
|
66
83
|
export interface IMediaConfig {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
peopleRecResolution: StreamResolution;
|
|
85
|
+
peopleSendResolution: StreamResolution;
|
|
86
|
+
contentRecResolution: StreamResolution;
|
|
87
|
+
contentSendResolution: StreamResolution;
|
|
88
|
+
downLinkRate: number;
|
|
89
|
+
upLinkRate: number;
|
|
70
90
|
}
|
|
71
91
|
/**
|
|
72
92
|
* 媒体能力配置 请求参数
|
|
@@ -79,7 +99,271 @@ export interface IMediaConfigParam {
|
|
|
79
99
|
* 企业配置信息
|
|
80
100
|
*
|
|
81
101
|
* @property { LayoutAvatarType } userAvatarMode 头像配置 0:名称头像(默认), 1: 人物头像
|
|
102
|
+
* @property { boolean } disableTranscriptionEng 禁用语音转写英文翻译,默认false
|
|
82
103
|
*/
|
|
83
104
|
export interface IEnterpriseConfig {
|
|
84
105
|
userAvatarMode?: LayoutAvatarType;
|
|
106
|
+
disableTranscriptionEng?: boolean;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 签到参数
|
|
110
|
+
*
|
|
111
|
+
* @property { string } questionnaireId - 业务ID
|
|
112
|
+
*/
|
|
113
|
+
export interface SignInParams {
|
|
114
|
+
questionnaireId: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 签到结果
|
|
118
|
+
*
|
|
119
|
+
* @property { boolean } success - 是否成功
|
|
120
|
+
* @property { string } status - 签到结果
|
|
121
|
+
* @property { string } data - 描述
|
|
122
|
+
*/
|
|
123
|
+
export interface SignInResult {
|
|
124
|
+
success: boolean;
|
|
125
|
+
status: string;
|
|
126
|
+
data: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 签到文案 详细内容
|
|
130
|
+
*
|
|
131
|
+
* @property { string } businessType - 业务类型
|
|
132
|
+
* @property { string } copyWritingCode - 文案编码
|
|
133
|
+
* @property { string } remark - 备注
|
|
134
|
+
* @property { string } content - 文案内容
|
|
135
|
+
* @property { string } picUrl - 图片地址
|
|
136
|
+
* @property { string } startVersion - 开始版本
|
|
137
|
+
* @property { number } createTime - 创建时间
|
|
138
|
+
* @property { number } updateTime - 更新时间
|
|
139
|
+
* @property { number } indexNo - 排序
|
|
140
|
+
* @property { string } enterpriseId - 企业id
|
|
141
|
+
* @property { boolean } custom - 是否自定义
|
|
142
|
+
*/
|
|
143
|
+
interface CopyWritingInfo {
|
|
144
|
+
businessType: string;
|
|
145
|
+
copyWritingCode: string;
|
|
146
|
+
remark: string;
|
|
147
|
+
content: string;
|
|
148
|
+
picUrl: string;
|
|
149
|
+
startVersion: string;
|
|
150
|
+
createTime: number;
|
|
151
|
+
updateTime: number;
|
|
152
|
+
indexNo: number;
|
|
153
|
+
enterpriseId: string;
|
|
154
|
+
custom: boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 签到文案
|
|
158
|
+
*
|
|
159
|
+
* @property { string } businessType - 业务类型
|
|
160
|
+
* @property { string } name - 业务名称
|
|
161
|
+
* @property { string } remark - 备注
|
|
162
|
+
* @property { string } startVersion - 开始版本
|
|
163
|
+
* @property { number } createTime - 创建时间
|
|
164
|
+
* @property { number } updateTime - 更新时间
|
|
165
|
+
* @property { CopyWritingInfo[] } copyWritings - 签到文案
|
|
166
|
+
*/
|
|
167
|
+
export interface copyWritingsDTO {
|
|
168
|
+
businessType: string;
|
|
169
|
+
name: string;
|
|
170
|
+
remark: string;
|
|
171
|
+
startVersion: string;
|
|
172
|
+
createTime: number;
|
|
173
|
+
updateTime: number;
|
|
174
|
+
copyWritings: CopyWritingInfo[];
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 签到文案
|
|
178
|
+
*
|
|
179
|
+
* @property { boolean } isSupport - 是否支持签到
|
|
180
|
+
* @property { string } businessName - 业务名称
|
|
181
|
+
* @property { string } content - 签到文案
|
|
182
|
+
* @property { copyWritingsDTO } copyWritingsDTO - 签到文案
|
|
183
|
+
*/
|
|
184
|
+
export interface SignInText {
|
|
185
|
+
isSupport: boolean;
|
|
186
|
+
businessName: string;
|
|
187
|
+
content: string;
|
|
188
|
+
copyWritingsDTO: copyWritingsDTO;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 校验会控主持密码结果
|
|
192
|
+
*/
|
|
193
|
+
export interface ControlPasswordResult {
|
|
194
|
+
code: number;
|
|
195
|
+
data: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* 信令上报原始的消息
|
|
199
|
+
*
|
|
200
|
+
* @property { number } subType - 消息类型
|
|
201
|
+
* @property { string } content - 消息详细内容
|
|
202
|
+
* @property { string } requestId - 消息ID
|
|
203
|
+
*/
|
|
204
|
+
export interface OriginalNotification {
|
|
205
|
+
subType: number;
|
|
206
|
+
content: string;
|
|
207
|
+
requestId: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* 业务状态
|
|
211
|
+
*
|
|
212
|
+
* @param { VOTE_SIGNATURE_START } VOTE_SIGNATURE_START - 开始签到
|
|
213
|
+
* @param { VOTE_SIGNATURE_STOP } VOTE_SIGNATURE_STOP - 签到结束
|
|
214
|
+
*/
|
|
215
|
+
export declare enum EVENT_TYPE {
|
|
216
|
+
VOTE_SIGNATURE_START = "VOTE_SIGNATURE_START",
|
|
217
|
+
VOTE_SIGNATURE_STOP = "VOTE_SIGNATURE_STOP"
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* 业务类型
|
|
221
|
+
*
|
|
222
|
+
* @param { SIGN_IN } 2 - 签到
|
|
223
|
+
*/
|
|
224
|
+
export declare enum VOTE_TYPE {
|
|
225
|
+
SIGN_IN = 2
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* 互动工具业务类型:签到 答题 投票 评价
|
|
229
|
+
*
|
|
230
|
+
* @param { CHECK_IN } CHECK_IN - 签到
|
|
231
|
+
*/
|
|
232
|
+
export declare enum PROCESS_TYPE {
|
|
233
|
+
CHECK_IN = "CHECK_IN"
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* 互动工具业务涉及到弹窗和状态栏内容
|
|
237
|
+
*
|
|
238
|
+
* @property { string } notifyContent - 左上角状态栏文案
|
|
239
|
+
* @property { string } notifyLabel - 左上角状态栏按钮内容 比如签到按钮
|
|
240
|
+
* @property { string } dialogTitle - 弹窗标题
|
|
241
|
+
* @property { string } dialogContent - 弹窗主要内容 黑体字部分
|
|
242
|
+
* @property { string } dialogSubContent - 弹窗描述
|
|
243
|
+
* @property { string } dialogLabel - 弹窗右下角按钮文案
|
|
244
|
+
*/
|
|
245
|
+
export interface CopyWriting {
|
|
246
|
+
notifyContent: string;
|
|
247
|
+
notifyLabel: string;
|
|
248
|
+
dialogTitle: string;
|
|
249
|
+
dialogContent: string;
|
|
250
|
+
dialogSubContent: string;
|
|
251
|
+
dialogLabel: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 会控互动工具相关数据, 签到等
|
|
255
|
+
*
|
|
256
|
+
* @property { EVENT_TYPE } type - 业务状态
|
|
257
|
+
* @property { VOTE_TYPE } voteType - 业务类型, 签到:2
|
|
258
|
+
* @property { string } questionnaireId - 业务id
|
|
259
|
+
* @property { boolean } endAuto - 是否自动结束(有倒计时),还是手动结束
|
|
260
|
+
* @property { number } duration -期限,比如签到剩余时间
|
|
261
|
+
* @property { number } endUtcTime - 结束时间
|
|
262
|
+
* @property { string } meetingId - 会议ID
|
|
263
|
+
* @property { PROCESS_TYPE } processType - 互动工具业务类型:签到 答题 投票 评价
|
|
264
|
+
* @property { string } url - 签到url
|
|
265
|
+
* @property { string } webViewUrl - h5页面url
|
|
266
|
+
* @property { Copywriting } copywriting - 弹窗内容、左侧顶部状态栏内容
|
|
267
|
+
*/
|
|
268
|
+
export interface InteractiveToolInfo {
|
|
269
|
+
type: EVENT_TYPE;
|
|
270
|
+
voteType: VOTE_TYPE;
|
|
271
|
+
questionnaireId: string;
|
|
272
|
+
endAuto?: false;
|
|
273
|
+
duration?: number;
|
|
274
|
+
endUtcTime?: number;
|
|
275
|
+
meetingId?: string;
|
|
276
|
+
processType: PROCESS_TYPE;
|
|
277
|
+
displayResult?: true;
|
|
278
|
+
faceCheckInSupport?: false;
|
|
279
|
+
faceType?: number;
|
|
280
|
+
supportFace?: false;
|
|
281
|
+
supportScan?: true;
|
|
282
|
+
url?: string;
|
|
283
|
+
urlProp?: string;
|
|
284
|
+
webViewUrl?: string;
|
|
285
|
+
webViewUrlProp?: string;
|
|
286
|
+
copywriting?: CopyWriting;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* 会控互动工具相关数据, 签到等
|
|
290
|
+
*/
|
|
291
|
+
export interface OriginalRealTimeNotification {
|
|
292
|
+
count: number;
|
|
293
|
+
events: {
|
|
294
|
+
content: string;
|
|
295
|
+
type: EVENT_TYPE;
|
|
296
|
+
action: EVENT_TYPE;
|
|
297
|
+
}[];
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* 是否是联席主持人
|
|
301
|
+
*
|
|
302
|
+
* @param NONE - 默认值
|
|
303
|
+
* @param ON - 是
|
|
304
|
+
* @param OFF - 否
|
|
305
|
+
*/
|
|
306
|
+
export declare enum CoChair {
|
|
307
|
+
NONE = "none",
|
|
308
|
+
ON = "on",
|
|
309
|
+
OFF = "off"
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* 是否是主持人
|
|
313
|
+
*
|
|
314
|
+
* @param NONE - 默认值
|
|
315
|
+
* @param ON - 是
|
|
316
|
+
* @param OFF - 否
|
|
317
|
+
*/
|
|
318
|
+
export declare enum Host {
|
|
319
|
+
NONE = "none",
|
|
320
|
+
ON = "on",
|
|
321
|
+
OFF = "off"
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* 信令上报的消息
|
|
325
|
+
*
|
|
326
|
+
* @property { CoChair } coChair - 是否是联席主持人
|
|
327
|
+
* @property { Host } host - 是否是主持人
|
|
328
|
+
* @property { string } meetingId - 会议ID
|
|
329
|
+
*/
|
|
330
|
+
export interface NotificationContent {
|
|
331
|
+
coChair?: CoChair;
|
|
332
|
+
host?: Host;
|
|
333
|
+
meetingId?: string;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* 信令上报的消息
|
|
337
|
+
*
|
|
338
|
+
* @property { number } subType - 消息类型
|
|
339
|
+
* @property { NotificationContent } content - 消息详细内容
|
|
340
|
+
* @property { string } requestId - 消息ID
|
|
341
|
+
*/
|
|
342
|
+
export interface Notification {
|
|
343
|
+
subType: number;
|
|
344
|
+
content: NotificationContent;
|
|
345
|
+
requestId: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* 获取签到文案参数
|
|
349
|
+
*
|
|
350
|
+
* @property { EVENT_TYPE } type - 业务状态
|
|
351
|
+
* @property { string } environment - 语言
|
|
352
|
+
* @property { VOTE_TYPE } businessType - 业务类型
|
|
353
|
+
*/
|
|
354
|
+
export interface SignInTextParams {
|
|
355
|
+
type: EVENT_TYPE;
|
|
356
|
+
environment: string;
|
|
357
|
+
businessType: VOTE_TYPE;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* 云会议室属性
|
|
361
|
+
*
|
|
362
|
+
* @property { boolean } enableContentLive - 是否开启了多路共享
|
|
363
|
+
* @property { boolean} enableContentLiveOnHold - 是否开启了多路共享,且由管理员指定共享
|
|
364
|
+
*/
|
|
365
|
+
export interface ConferenceProperties {
|
|
366
|
+
enableContentLive: boolean;
|
|
367
|
+
enableContentLiveOnHold: boolean;
|
|
85
368
|
}
|
|
369
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Websocket options
|
|
3
|
+
*
|
|
4
|
+
* @param { string } url - Websocket URL
|
|
5
|
+
* @param { string[] } protocols - Websocket protocols
|
|
6
|
+
* @param { string } pingData - ping请求的默认发送内容
|
|
7
|
+
* @param { string } pangData - pong请求的默认发送内容
|
|
8
|
+
* @param { boolean } openHeatBeat - 开启心跳检测
|
|
9
|
+
* @param { boolean } autoReConnect - 自动重连
|
|
10
|
+
* @param { any } params - Params
|
|
11
|
+
*/
|
|
12
|
+
export interface SocketOptions {
|
|
13
|
+
url: string;
|
|
14
|
+
protocols?: string[];
|
|
15
|
+
pingData?: string;
|
|
16
|
+
pangData?: string;
|
|
17
|
+
openHeatBeat?: boolean;
|
|
18
|
+
autoReConnect?: boolean;
|
|
19
|
+
params?: any;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* socket 消息队列信息
|
|
23
|
+
*
|
|
24
|
+
* @param { string } id - 消息ID
|
|
25
|
+
* @param { any } data - 消息内容
|
|
26
|
+
* @param { number } maxRetries - 最大重试次数
|
|
27
|
+
*/
|
|
28
|
+
export interface SocketMessageData {
|
|
29
|
+
id: string;
|
|
30
|
+
data: any;
|
|
31
|
+
maxRetries?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* socket消息
|
|
35
|
+
*
|
|
36
|
+
* @param { PING } PING - ping请求的默认发送内容
|
|
37
|
+
* @param { PONG } PONG - pong请求的默认发送内容
|
|
38
|
+
*/
|
|
39
|
+
export declare enum SocketMessage {
|
|
40
|
+
PING = "PING",
|
|
41
|
+
PONG = "PONG"
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* socket事件
|
|
45
|
+
*
|
|
46
|
+
* @param { OPEN } OPEN - socket连接成功
|
|
47
|
+
* @param { MESSAGE } MESSAGE - socket接收到消息
|
|
48
|
+
* @param { ERROR } ERROR - socket连接错误
|
|
49
|
+
* @param { CLOSE } CLOSE - socket连接关闭
|
|
50
|
+
* @param { TIMEOUT } TIMEOUT - socket连接超时
|
|
51
|
+
* @param { RECONNECT } RECONNECT - socket重连
|
|
52
|
+
*/
|
|
53
|
+
export declare enum SocketEvent {
|
|
54
|
+
OPEN = "open",
|
|
55
|
+
MESSAGE = "message",
|
|
56
|
+
ERROR = "error",
|
|
57
|
+
CLOSE = "close",
|
|
58
|
+
TIMEOUT = "timeout",
|
|
59
|
+
RECONNECT = "reconnect"
|
|
60
|
+
}
|
package/lib/type/stream.d.ts
CHANGED
|
@@ -14,17 +14,10 @@ export type IStreamTrackStatus = 'ENABLED' | 'MUTE' | 'ENDED';
|
|
|
14
14
|
* @param VIDEO video 视频设备
|
|
15
15
|
* @param AUDIO audio 音频设备
|
|
16
16
|
*/
|
|
17
|
-
export declare enum
|
|
17
|
+
export declare enum DEVICE_TYPE {
|
|
18
18
|
VIDEO = "video",
|
|
19
19
|
AUDIO = "audio"
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* 设备类型枚举列表
|
|
23
|
-
*
|
|
24
|
-
* @param VIDEO video 视频设备
|
|
25
|
-
* @param AUDIO audio 音频设备
|
|
26
|
-
*/
|
|
27
|
-
export type TDeviceKind = `${DeviceKind}`;
|
|
28
21
|
/**
|
|
29
22
|
* 请流时,控制流的帧率
|
|
30
23
|
*
|
|
@@ -88,6 +81,12 @@ export declare enum StreamType {
|
|
|
88
81
|
}
|
|
89
82
|
/**
|
|
90
83
|
* 分辨率枚举列表
|
|
84
|
+
*
|
|
85
|
+
* @param RS90 - 160*90
|
|
86
|
+
* @param RS180 - 320*180
|
|
87
|
+
* @param RS360 - 640*350
|
|
88
|
+
* @param RS720 - 1280*720
|
|
89
|
+
* @param RS1080 - 1920*1080
|
|
91
90
|
*/
|
|
92
91
|
export declare enum StreamResolution {
|
|
93
92
|
RS90 = 90,
|
|
@@ -287,12 +286,14 @@ export interface IStreamCurrent {
|
|
|
287
286
|
* @property { boolean } isShareFile 是否是分享文件
|
|
288
287
|
* @property { boolean } isShareWhiteBoard 是否是白板
|
|
289
288
|
* @property { boolean } isSharePeople 是否是people流
|
|
289
|
+
* @property { boolean } isSettingMode 是否是设置模式
|
|
290
290
|
*/
|
|
291
291
|
export interface IPublishParams {
|
|
292
292
|
isShareContent?: boolean;
|
|
293
293
|
isShareFile?: boolean;
|
|
294
294
|
isShareWhiteBoard?: boolean;
|
|
295
295
|
isSharePeople?: boolean;
|
|
296
|
+
isSettingMode?: boolean;
|
|
296
297
|
}
|
|
297
298
|
/**
|
|
298
299
|
* 封装Stream Sender
|
|
@@ -360,13 +361,9 @@ export interface IStreamInitConfig {
|
|
|
360
361
|
/**
|
|
361
362
|
* stream init第二个参数配置
|
|
362
363
|
*
|
|
363
|
-
* @property { boolean } muteVideo - 是否是关闭摄像头入会,默认是true,关闭摄像头
|
|
364
|
-
* @property { boolean } muteAudio - 是否是关闭麦克风入会,默认是true,关闭麦克风
|
|
365
364
|
* @property { boolean } enabledCustomStream - 是否启用自定义视频流
|
|
366
365
|
*/
|
|
367
366
|
export type IStreamInitParams = {
|
|
368
|
-
muteVideo?: boolean;
|
|
369
|
-
muteAudio?: boolean;
|
|
370
367
|
enabledCustomStream?: boolean;
|
|
371
368
|
};
|
|
372
369
|
/**
|
|
@@ -663,3 +660,14 @@ export interface IFrameRateConfig {
|
|
|
663
660
|
}
|
|
664
661
|
export interface ISteamConfig {
|
|
665
662
|
}
|
|
663
|
+
/**
|
|
664
|
+
* 切换设备方法额外配置
|
|
665
|
+
*
|
|
666
|
+
* @property { boolean } isDefault - 是否是系统默认设备,如果指定默认设备,则DeviceId可以提供空值
|
|
667
|
+
* @property { boolean } allowSpecifiedId - 是否需要记录当前设备ID信息,默认内部的切换设备行为不需要记录,仅用户主动触发才会强制记录当前的设备ID信息
|
|
668
|
+
*
|
|
669
|
+
*/
|
|
670
|
+
export interface SwitchDeviceConfig {
|
|
671
|
+
isDefault?: boolean;
|
|
672
|
+
allowSpecifiedId?: boolean;
|
|
673
|
+
}
|