zego-express-engine-electron-plugin-blend-image-private 1.2.8
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/ZegoExpressWebgl.js +738 -0
- package/index.d.ts +521 -0
- package/index.js +537 -0
- package/mac/ZegoBlendImageNode.node +0 -0
- package/mac/ZegoBlendImageNode.node.dSYM/Contents/Info.plist +20 -0
- package/mac/ZegoBlendImageNode.node.dSYM/Contents/Resources/DWARF/ZegoBlendImageNode.node +0 -0
- package/mac/libZegoScreenCaptureOSX.dylib +0 -0
- package/package.json +20 -0
- package/win/x64/ZegoBlendImageNode.node +0 -0
- package/win/x64/ZegoBlendImageNode.pdb +0 -0
- package/win/x64/ZegoScreenCapture.dll +0 -0
- package/win/x86/ZegoBlendImageNode.node +0 -0
- package/win/x86/ZegoBlendImageNode.pdb +0 -0
- package/win/x86/ZegoScreenCapture.dll +0 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
declare const EventEmitter: any;
|
|
2
|
+
/**
|
|
3
|
+
* ZegoExpressPluginBlendImageLogLevel
|
|
4
|
+
* @enum {number}
|
|
5
|
+
*/
|
|
6
|
+
declare const ZegoExpressPluginBlendImageLogLevel: {
|
|
7
|
+
LogLevelGrievous: number;
|
|
8
|
+
LogLevelError: number;
|
|
9
|
+
LogLevelWarning: number;
|
|
10
|
+
LogLevelGeneric: number;
|
|
11
|
+
LogLevelDebug: number;
|
|
12
|
+
};
|
|
13
|
+
declare const ZGCustomCaptureSourceType: {
|
|
14
|
+
IMAGE_TYPE: number;
|
|
15
|
+
CAMERA_TYPE: number;
|
|
16
|
+
VIDEO_FILE_TYPE: number;
|
|
17
|
+
SCREEN_TYPE: number;
|
|
18
|
+
IMAGE_GIF_TYPE: number;
|
|
19
|
+
COMPLEX_TYPE: number;
|
|
20
|
+
WINDOW_TYPE: number;
|
|
21
|
+
CUSTOM_DATA_TYPE: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* ZegoExpressPluginCustomSourceLayer
|
|
25
|
+
* @enum {number}
|
|
26
|
+
*/
|
|
27
|
+
declare const ZegoExpressPluginCustomSourceLayer: {
|
|
28
|
+
/**
|
|
29
|
+
* @description reverse all layer.
|
|
30
|
+
*/
|
|
31
|
+
CustomSourceReverseLayer: number;
|
|
32
|
+
/**
|
|
33
|
+
* @description let source keep toplayer.
|
|
34
|
+
*/
|
|
35
|
+
CustomSourceTopLayer: number;
|
|
36
|
+
/**
|
|
37
|
+
* @description let source move to uplayer.
|
|
38
|
+
*/
|
|
39
|
+
CustomSourceUpLayer: number;
|
|
40
|
+
/**
|
|
41
|
+
* @description let source move to downlayer.
|
|
42
|
+
*/
|
|
43
|
+
CustomSourceDownLayer: number;
|
|
44
|
+
/**
|
|
45
|
+
* @description let source keep bottomlayer.
|
|
46
|
+
*/
|
|
47
|
+
CustomSourceBottomLayer: number;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Video rendering fill mode.
|
|
51
|
+
* 视图填充模式
|
|
52
|
+
* @enum {number}
|
|
53
|
+
*/
|
|
54
|
+
declare const ZegoBlendImageViewMode: {
|
|
55
|
+
/**
|
|
56
|
+
* @description The proportional scaling up, there may be black borders
|
|
57
|
+
* @description 等比缩放,可能有黑边
|
|
58
|
+
*/
|
|
59
|
+
AspectFit: number;
|
|
60
|
+
/**
|
|
61
|
+
* @description The proportional zoom fills the entire View and may be partially cut
|
|
62
|
+
* @description 等比缩放填充整View,可能有部分被裁减
|
|
63
|
+
*/
|
|
64
|
+
AspectFill: number;
|
|
65
|
+
/**
|
|
66
|
+
* @description Fill the entire view, the image may be stretched
|
|
67
|
+
* @description 填充整个View,会产生拉伸
|
|
68
|
+
*/
|
|
69
|
+
ScaleToFill: number;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* ZegoExpressPluginScreenCaptureWindowMode
|
|
73
|
+
* @enum {number}
|
|
74
|
+
*/
|
|
75
|
+
declare const ZegoExpressPluginScreenCaptureWindowMode: {
|
|
76
|
+
/**
|
|
77
|
+
* @description Capture the target window even when it's covered by other window.
|
|
78
|
+
*/
|
|
79
|
+
ScreenCaptureWindowModeNormal: number;
|
|
80
|
+
/**
|
|
81
|
+
* @description After the target window is covered, the covered area uses content of the upper window.
|
|
82
|
+
*/
|
|
83
|
+
ScreenCaptureWindowModeUseUpper: number;
|
|
84
|
+
/**
|
|
85
|
+
* @description Capture the whole screen of the window, compared with ScreenCaptureWindowModeNormal, there is no window switching process in this mode(only for windows).
|
|
86
|
+
*/
|
|
87
|
+
ScreenCaptureWindowModeNormal2: number;
|
|
88
|
+
};
|
|
89
|
+
declare const ZegoExpressPluginScreenCaptureWindowStatus: {
|
|
90
|
+
/**
|
|
91
|
+
* @description the target window has no change.
|
|
92
|
+
*/
|
|
93
|
+
ScreenCaptureWindowStatusNoChange: number;
|
|
94
|
+
/**
|
|
95
|
+
* @description the target window is destroyed.
|
|
96
|
+
*/
|
|
97
|
+
ScreenCaptureWindowStatusDestroy: number;
|
|
98
|
+
/**
|
|
99
|
+
* @description the target window is maximized.
|
|
100
|
+
*/
|
|
101
|
+
ScreenCaptureWindowStatusMaximize: number;
|
|
102
|
+
/**
|
|
103
|
+
* @description the target window is minimized.
|
|
104
|
+
*/
|
|
105
|
+
ScreenCaptureWindowStatusMinimize: number;
|
|
106
|
+
/**
|
|
107
|
+
* @description the target window is actived.
|
|
108
|
+
*/
|
|
109
|
+
ScreenCaptureWindowStatusActive: number;
|
|
110
|
+
/**
|
|
111
|
+
* @description the target window is deactived
|
|
112
|
+
*/
|
|
113
|
+
ScreenCaptureWindowStatusDeactive: number;
|
|
114
|
+
/**
|
|
115
|
+
* @description the target window is is showed
|
|
116
|
+
*/
|
|
117
|
+
ScreenCaptureWindowStatusShow: number;
|
|
118
|
+
/**
|
|
119
|
+
* @description the target window is hided
|
|
120
|
+
*/
|
|
121
|
+
ScreenCaptureWindowStatusHide: number;
|
|
122
|
+
/**
|
|
123
|
+
* @description the target window is movded
|
|
124
|
+
*/
|
|
125
|
+
ScreenCaptureWindowStatusMove: number;
|
|
126
|
+
/**
|
|
127
|
+
* @description the target window is covered
|
|
128
|
+
*/
|
|
129
|
+
ScreenCaptureWindowStatusCover: number;
|
|
130
|
+
/**
|
|
131
|
+
* @description the target window is uncovered
|
|
132
|
+
*/
|
|
133
|
+
ScreenCaptureWindowStatusUnCover: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Screen item
|
|
137
|
+
*/
|
|
138
|
+
interface IZegoExpressPluginScreenCaptureScreenItem {
|
|
139
|
+
/**
|
|
140
|
+
* identification for the screen
|
|
141
|
+
*/
|
|
142
|
+
screenID: any;
|
|
143
|
+
/**
|
|
144
|
+
* is the primary screen
|
|
145
|
+
*/
|
|
146
|
+
isPrimary: boolean;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Window item
|
|
150
|
+
*/
|
|
151
|
+
interface IZegoExpressPluginScreenCaptureWindowItem {
|
|
152
|
+
/**
|
|
153
|
+
* identification for the window
|
|
154
|
+
*/
|
|
155
|
+
handle: any;
|
|
156
|
+
/**
|
|
157
|
+
* window title
|
|
158
|
+
*/
|
|
159
|
+
title: string;
|
|
160
|
+
/**
|
|
161
|
+
* The path of process binary that the window corresponds to
|
|
162
|
+
* support only on windows
|
|
163
|
+
*/
|
|
164
|
+
imagePath: string;
|
|
165
|
+
}
|
|
166
|
+
interface IZegoExpressPluginScreenCaptureThumbnailBitmap {
|
|
167
|
+
/**
|
|
168
|
+
* with
|
|
169
|
+
*/
|
|
170
|
+
width: number;
|
|
171
|
+
/**
|
|
172
|
+
* height
|
|
173
|
+
*/
|
|
174
|
+
height: number;
|
|
175
|
+
/**
|
|
176
|
+
* the base64 data of the image
|
|
177
|
+
* example: h5.img.setAttribute('src', "data:image/png;base64," + png)
|
|
178
|
+
*/
|
|
179
|
+
png: any;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Screen thumbnail item
|
|
183
|
+
*/
|
|
184
|
+
interface IZegoExpressPluginScreenCaptureScreenThumbnailItem {
|
|
185
|
+
/**
|
|
186
|
+
* identification for the screen
|
|
187
|
+
*/
|
|
188
|
+
screenID: any;
|
|
189
|
+
/**
|
|
190
|
+
* screen thumbnail
|
|
191
|
+
*/
|
|
192
|
+
imageThumbnail: IZegoExpressPluginScreenCaptureThumbnailBitmap;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Window thumbnail item
|
|
196
|
+
*/
|
|
197
|
+
interface IZegoExpressPluginScreenCaptureWindowThumbnailItem {
|
|
198
|
+
/**
|
|
199
|
+
* identification for the window
|
|
200
|
+
*/
|
|
201
|
+
handle: any;
|
|
202
|
+
/**
|
|
203
|
+
* window thumbnail
|
|
204
|
+
* could be null if sdk cannot get the imageThumnail from the system.
|
|
205
|
+
*/
|
|
206
|
+
imageThumbnail: IZegoExpressPluginScreenCaptureThumbnailBitmap;
|
|
207
|
+
/**
|
|
208
|
+
* window icon thumbnail
|
|
209
|
+
*/
|
|
210
|
+
iconThumbnail: IZegoExpressPluginScreenCaptureThumbnailBitmap;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Rect
|
|
214
|
+
*
|
|
215
|
+
* (x,y)
|
|
216
|
+
* ---------------
|
|
217
|
+
* | |
|
|
218
|
+
* | | height
|
|
219
|
+
* | |
|
|
220
|
+
* ---------------
|
|
221
|
+
* width
|
|
222
|
+
*/
|
|
223
|
+
interface IZegoExpressPluginScreenCaptureRect {
|
|
224
|
+
x: number;
|
|
225
|
+
y: number;
|
|
226
|
+
width: number;
|
|
227
|
+
height: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* IZegoExpressPluginErrorInfo
|
|
231
|
+
*
|
|
232
|
+
* @remark use by onScreenCaptureError(callback) and onLoadSourceParamError(callback)
|
|
233
|
+
*
|
|
234
|
+
* @param error, error code
|
|
235
|
+
* @param source, return by the function "createCustomCaptureSource()"
|
|
236
|
+
* @param errorMsg, the description of error
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
interface IZegoExpressPluginErrorInfo {
|
|
240
|
+
error: number;
|
|
241
|
+
source: number;
|
|
242
|
+
errorMsg: string;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* ZegoExpressPluginBlendImageEventHandler
|
|
246
|
+
*/
|
|
247
|
+
interface ZegoExpressPluginBlendImageEventHandler {
|
|
248
|
+
/**
|
|
249
|
+
* onScreenCaptureError
|
|
250
|
+
*
|
|
251
|
+
* @remark this callback will trigger when capture error occurred, source always is zero
|
|
252
|
+
*
|
|
253
|
+
* @param {IZegoExpressPluginErrorInfo} errorInfo - the error struct
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
onScreenCaptureError: (errorInfo: IZegoExpressPluginErrorInfo) => void;
|
|
257
|
+
/**
|
|
258
|
+
* onLoadSourceParamError
|
|
259
|
+
*
|
|
260
|
+
* @remark this callback will trigger when setparam error occurred
|
|
261
|
+
*
|
|
262
|
+
* @param {IZegoExpressPluginErrorInfo} errorInfo - the error struct
|
|
263
|
+
*/
|
|
264
|
+
onLoadSourceParamError: (errorInfo: IZegoExpressPluginErrorInfo) => void;
|
|
265
|
+
/**
|
|
266
|
+
* onScreenCaptureWindowStatusChanged
|
|
267
|
+
*
|
|
268
|
+
* @remark this callback will trigger when the status of the window captured changed
|
|
269
|
+
*
|
|
270
|
+
* @param {any} handle - identification for the window
|
|
271
|
+
* @param {ZegoExpressPluginScreenCaptureWindowStatus} windowStatus - the status of the window
|
|
272
|
+
* @param {IZegoExpressPluginScreenCaptureRect} windowRect - the rect of the window
|
|
273
|
+
*/
|
|
274
|
+
onScreenCaptureWindowStatusChanged: (handle: any, windowStatus: number, windowRect: IZegoExpressPluginScreenCaptureRect) => void;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* ZegoExpressPluginBlendImage
|
|
278
|
+
*/
|
|
279
|
+
declare class ZegoExpressPluginBlendImage extends EventEmitter {
|
|
280
|
+
private _addonInstance;
|
|
281
|
+
constructor();
|
|
282
|
+
/**
|
|
283
|
+
* register callback for the specific event.
|
|
284
|
+
*/
|
|
285
|
+
on<K extends keyof ZegoExpressPluginBlendImageEventHandler>(event: K, callBack: ZegoExpressPluginBlendImageEventHandler[K]): boolean;
|
|
286
|
+
/**
|
|
287
|
+
* unregister callback for the specific event.
|
|
288
|
+
*/
|
|
289
|
+
off<K extends keyof ZegoExpressPluginBlendImageEventHandler>(event: K, callBack: ZegoExpressPluginBlendImageEventHandler[K]): void;
|
|
290
|
+
/**
|
|
291
|
+
* Gets the SDK's version number.
|
|
292
|
+
*
|
|
293
|
+
* @return {string} - SDK version
|
|
294
|
+
*/
|
|
295
|
+
getVersion(): any;
|
|
296
|
+
/**
|
|
297
|
+
* Init screen capture.
|
|
298
|
+
*
|
|
299
|
+
* @remarks
|
|
300
|
+
* call this function before you call any other function
|
|
301
|
+
*/
|
|
302
|
+
init(): void;
|
|
303
|
+
/**
|
|
304
|
+
* Uninit screen capture.
|
|
305
|
+
*/
|
|
306
|
+
uninit(): void;
|
|
307
|
+
/**
|
|
308
|
+
* Get screen list.
|
|
309
|
+
*
|
|
310
|
+
* @return {Array<IZegoExpressPluginScreenCaptureScreenItem>} - the screen list
|
|
311
|
+
*/
|
|
312
|
+
enumScreenList(): Array<IZegoExpressPluginScreenCaptureScreenItem>;
|
|
313
|
+
/**
|
|
314
|
+
* Get screen thumbnail list.
|
|
315
|
+
*
|
|
316
|
+
* @return {Promise<Array<IZegoExpressPluginScreenCaptureScreenThumbnailItem>>} - the screen thumbnail list
|
|
317
|
+
*/
|
|
318
|
+
enumScreenThumbnail(): Promise<Array<IZegoExpressPluginScreenCaptureScreenThumbnailItem>>;
|
|
319
|
+
/**
|
|
320
|
+
* Get window list.
|
|
321
|
+
*
|
|
322
|
+
* @param {boolean} isIncludeIconic - include the iconic window or not
|
|
323
|
+
*
|
|
324
|
+
* @return {Array<IZegoExpressPluginScreenCaptureWindowItem>} - the window list
|
|
325
|
+
*/
|
|
326
|
+
enumWindowList(isIncludeIconic?: boolean): Array<IZegoExpressPluginScreenCaptureWindowItem>;
|
|
327
|
+
/**
|
|
328
|
+
* Get window thumbnail list.
|
|
329
|
+
*
|
|
330
|
+
* @return {Promise<Array<IZegoExpressPluginScreenCaptureWindowThumbnailItem>>} - the window thumbnail list
|
|
331
|
+
*/
|
|
332
|
+
enumWindowThumbnail(): Promise<Array<IZegoExpressPluginScreenCaptureWindowThumbnailItem>>;
|
|
333
|
+
/**
|
|
334
|
+
* 检测窗口是否可以采集,若还未获取辅助功能权限,则调用该函数会申请辅助功能,Windows和Mac均可调用,只有Mac生效;
|
|
335
|
+
* @param {object} option - 参数对象
|
|
336
|
+
* @param {number} option.handle - 窗口句柄,目标窗口句柄,从接口enumWindowList 返回的对象数组列表中每项的handle字段
|
|
337
|
+
* @return {boolean} 是否可以采集该窗口
|
|
338
|
+
*/
|
|
339
|
+
checkWindowSourceAuthorityPermission(handle: number): boolean;
|
|
340
|
+
/**
|
|
341
|
+
* 预览源数据,同一时间只允许预览一个源数据(变更源可以直接切换到其他源预览,不支持合图源),如果需要预览时不合图,可以调用setCustomCaptureSourceVisible
|
|
342
|
+
* @param {number} captureSrc
|
|
343
|
+
* @param {Object} canvas
|
|
344
|
+
* @param {number} viewMode
|
|
345
|
+
* @param {number} backgroundColor
|
|
346
|
+
*/
|
|
347
|
+
startPreviewSource(captureSrc: number, canvas: Object, viewMode: number, backgroundColor: number): void;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
351
|
+
stopPreviewSource(captureSrc: number): void;
|
|
352
|
+
/**
|
|
353
|
+
* 创建自定义采集源,在初始化sdk成功之后调用
|
|
354
|
+
* @param {object} option - 参数对象
|
|
355
|
+
* @param {number} option.captureType - 自定义采集源的类型,支持自定义图片、摄像头(来自express插件)、视频文件(来自express插件)、屏幕分享,查看定义 <a href="./ZegoConstant.js.html" target="_blank">ZEGOCONSTANTS.ZGCustomCaptureSourceType</a>
|
|
356
|
+
* @param {number} option.dataPlugin - 摄像头、视频文件需要使用express的插件
|
|
357
|
+
* @return {number} -1 - 失败, 结果大于0 返回自定义采集源句柄
|
|
358
|
+
*/
|
|
359
|
+
createCustomCaptureSource(captureType: number, dataPlugin?: any): number;
|
|
360
|
+
/**
|
|
361
|
+
* 设置窗口采集源的参数
|
|
362
|
+
* @param {object} option - 参数对象
|
|
363
|
+
* @param {number} option.captureSrc - 窗口采集源,填写通过createCustomCaptureSource接口创建返回的窗口采集源
|
|
364
|
+
* @param {boolean} option.activateWindowWhenCapturing - 在目标窗口模式下,初次选择窗口时,设置是否激活窗口,true - 激活窗口,false - 不激活窗口 (仅windows有效)
|
|
365
|
+
* @param {number} option.targetWindow - 设置采集目标窗口句柄,从接口enumWindowList 返回的对象数组列表中每项的handle字段
|
|
366
|
+
* @param {number} option.fps - 设置采集的帧率
|
|
367
|
+
* @param {number} option.targetWindowMode 1 - 窗口截屏,带窗口标题栏, 2 - 窗口客户区截屏,不带窗口标题栏,3 - 截取窗口对应屏幕区域 (窗口被覆盖后继续捕获对应区域). 4 - 截取窗口对应屏幕区域(窗口被覆盖后继续捕获,覆盖区域涂黑. 5 -截取窗口对应屏幕区域(窗口被覆盖后继续捕获,过滤上层覆盖的窗口,win8及以后系统生效)
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
setWindowCaptureSourceParam(captureSrc: number, activateWindowWhenCapturing?: boolean, targetWindow?: number, fps?: number, targetWindowMode?: number): boolean;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @param captureSrc 自定义采集源对象
|
|
374
|
+
* @param dataPlugin 外部实现的采集源插件指针,需要继承实现即构的ZegoCustomVideoCapturePluginBase
|
|
375
|
+
* @returns
|
|
376
|
+
*/
|
|
377
|
+
setCustomDataSourceParam(captureSrc: number, dataPlugin: number): boolean;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @param captureSrc 摄像头源对象
|
|
381
|
+
* @param effectPlugin 外部实现的美颜插件指针,使用前咨询请使用方式
|
|
382
|
+
* @returns
|
|
383
|
+
*/
|
|
384
|
+
setCameraCaptureSourceParam(captureSrc: number, effectPlugin: number): boolean;
|
|
385
|
+
/**
|
|
386
|
+
* 配置图像源参数,可用于切换图片,更新图片路径即可
|
|
387
|
+
* @param {object} option - 参数对象
|
|
388
|
+
* @param {number} option.captureSrc - 采集源,填写通过createCustomCaptureSource接口创建返回的图像源
|
|
389
|
+
* @param {string} option.imagePath - 图像路径,图像支持bmp图像 todo
|
|
390
|
+
* @return {boolean} true - 成功, false - 失败,输入的源无效
|
|
391
|
+
*/
|
|
392
|
+
setImageCaptureSourceParam(captureSrc: number, imagePath: string): boolean;
|
|
393
|
+
/**
|
|
394
|
+
* 配置GIF图像源参数,可用于切换GIF图片,更新图片路径即可
|
|
395
|
+
* @param {object} option - 参数对象
|
|
396
|
+
* @param {number} option.captureSrc - 采集源,填写通过createCustomCaptureSource接口创建返回的图像源
|
|
397
|
+
* @param {string} option.imagePath - GIF图像路径,图像支持GIF图像
|
|
398
|
+
* @return {boolean} true - 成功, false - 失败,输入的源无效
|
|
399
|
+
*/
|
|
400
|
+
setImageGifCaptureSourceParam(captureSrc: number, imagePath: string): boolean;
|
|
401
|
+
/**
|
|
402
|
+
* 设置屏幕分享源的参数
|
|
403
|
+
* @param {object} option - 参数对象
|
|
404
|
+
* @param {number} option.captureSrc - 屏幕采集源,填写通过createCustomCaptureSource接口创建返回的屏幕采集源
|
|
405
|
+
* @param {string} option.targetScreen - 设置采集目标屏幕名,从接口enumScreenList 返回的对象数组列表中每项的screen_name字段
|
|
406
|
+
* @param {number} option.fps - 设置采集的帧率
|
|
407
|
+
* @param {boolean} option.fullScreen -设置采集主屏幕全屏,true - 采集全屏
|
|
408
|
+
* @param {boolean} option.virtualFullScreen - 设置采集虚拟桌面全屏,true - 采集虚拟全屏。在full_screen为false时有效
|
|
409
|
+
* @param {boolean} option.cursorVisible - 是否显示光标,true - 显示,false - 不显示
|
|
410
|
+
* @param {boolean} option.clickAnimation - 是否显示鼠标点击动画,true - 显示鼠标点击动画, false - 不显示鼠标点击动画
|
|
411
|
+
* @param {number} option.targetRectLeft - 设置采集目标区域,单位为像素,支持高DPI,目标区域左上角横坐标
|
|
412
|
+
* @param {number} option.targetRectTop - 目标区域左上角纵坐标
|
|
413
|
+
* @param {number} option.targetRectWidth - 目标区域宽
|
|
414
|
+
* @param {number} option.targetRectHeight - 目标区域高
|
|
415
|
+
*
|
|
416
|
+
*/
|
|
417
|
+
setScreenCaptureSourceParam(captureSrc: number, targetScreen?: string, fps?: number, fullScreen?: boolean, virtualFullScreen?: boolean, cursorVisible?: boolean, clickAnimation?: boolean, targetRectLeft?: number, targetRectTop?: number, targetRectWidth?: number, targetRectHeight?: number): boolean;
|
|
418
|
+
/**
|
|
419
|
+
* 设置组合源输出大小
|
|
420
|
+
* @param {object} option - 参数对象
|
|
421
|
+
* @param {number} option.combinedSourceID - 组合源
|
|
422
|
+
* @param {number} option.width - 组合源输出的宽
|
|
423
|
+
* @param {number} option.height - 组合源输出的高
|
|
424
|
+
* @param {number} option.fps - 组合源输出的帧率
|
|
425
|
+
* @return {boolean} true - 成功, false - 失败
|
|
426
|
+
*/
|
|
427
|
+
setCombinedSourceParam(combinedSourceID: number, width: number, height: number, fps: number): boolean;
|
|
428
|
+
/**
|
|
429
|
+
* 设置组合源的背景色
|
|
430
|
+
* @param {object} option - 参数对象
|
|
431
|
+
* @param {number} option.combinedSourceID - 混合源的id
|
|
432
|
+
* @param {number} option.rgba - 混合源的背景色0x FF(R) 00(G) 00(B) FF(A),背景支持Alpha通道,需要配合Express Electron接口进行传输设置(无特殊需要不要配置alpha通道),默认0x000000FF(黑色)
|
|
433
|
+
* @return {boolean} true - 成功, false - 失败
|
|
434
|
+
*/
|
|
435
|
+
setCombinedBackgroundColor(combinedSourceID: number, rgba: number): boolean;
|
|
436
|
+
/**
|
|
437
|
+
* 向组合源添加采集源
|
|
438
|
+
* @param {object} option - 参数对象
|
|
439
|
+
* @param {number} option.combinedSourceID - 组合源的id
|
|
440
|
+
* @param {number} option.customCaptureSourceID - 采集源对象
|
|
441
|
+
* @return {boolean} true - 成功, false - 失败
|
|
442
|
+
*/
|
|
443
|
+
addCustomCaptureSource(combinedSourceID: number, customCaptureSourceID: number): boolean;
|
|
444
|
+
/**
|
|
445
|
+
* 删除组合源中的采集源
|
|
446
|
+
* @param {object} option - 参数对象
|
|
447
|
+
* @param {number} option.combinedSourceID - 组合源的id
|
|
448
|
+
* @param {number} option.customCaptureSourceID - 采集源对象id
|
|
449
|
+
* @return {boolean} true - 成功, false - 失败
|
|
450
|
+
*/
|
|
451
|
+
delCustomCaptureSource(combinedSourceID: number, customCaptureSourceID: number): boolean;
|
|
452
|
+
/**
|
|
453
|
+
* 设置组合源中指定采集源的平面Z轴顺序
|
|
454
|
+
* @param {object} option - 参数对象
|
|
455
|
+
* @param {number} option.combinedSourceID - 组合源的id
|
|
456
|
+
* @param {number} option.customCaptureSourceID - 采集源对象id
|
|
457
|
+
* @param {number} option.zOrder - 采集源的平面Z轴顺序,请填写ZegoExpressPluginCustomSourceLayer类型,
|
|
458
|
+
* 如果该参数为CustomSourceReverseLayer,则不会判断customCaptureSourceID参数
|
|
459
|
+
* @param {number} option.zOrderNum - 采集源的平面Z轴顺序为CustomSourceUpLayer或CustomSourceDownLayer类型时移动的层数,默认为1
|
|
460
|
+
* @return {boolean} true - 成功, false - 失败
|
|
461
|
+
*/
|
|
462
|
+
setCustomCaptureSourceZOrder(combinedSourceID: number, customCaptureSourceID: number, zOrder: number, zOrderNum?: number): boolean;
|
|
463
|
+
/**
|
|
464
|
+
* 设置组合源中指定采集源是否可见
|
|
465
|
+
* @param {object} option - 参数对象
|
|
466
|
+
* @param {number} option.combinedSourceID - 组合源的id
|
|
467
|
+
* @param {number} option.customCaptureSourceID - 采集源的id
|
|
468
|
+
* @param {boolean} option.visible - 混合源是否可见 todo
|
|
469
|
+
* @return {boolean} true - 成功, false - 失败
|
|
470
|
+
*/
|
|
471
|
+
setCustomCaptureSourceVisible(combinedSourceID: number, customCaptureSourceID: number, visible: boolean): boolean;
|
|
472
|
+
/**
|
|
473
|
+
* 设置组合源中指定采集源的布局
|
|
474
|
+
* @param {object} option - 参数对象
|
|
475
|
+
* @param {number} option.combinedSourceID - 组合源的id
|
|
476
|
+
* @param {number} option.customCaptureSourceID - 采集源的id
|
|
477
|
+
* @param {number} option.x - 采集源相对于画布左上角的x
|
|
478
|
+
* @param {number} option.y - 采集源相对于画布左上角的y
|
|
479
|
+
* @param {number} option.w - 采集源的宽
|
|
480
|
+
* @param {number} option.h - 采集源的高
|
|
481
|
+
* @param {number} option.viewMode - 见ZegoBlendImageViewMode
|
|
482
|
+
* @return {boolean} true - 成功, false - 失败
|
|
483
|
+
*/
|
|
484
|
+
setCustomCaptureSourceLayout(combinedSourceID: number, customCaptureSourceID: number, x: number, y: number, w: number, h: number, viewMode?: number): boolean;
|
|
485
|
+
/**
|
|
486
|
+
* 翻转自定义采集源
|
|
487
|
+
* @param {object} option - 参数对象
|
|
488
|
+
* @param {number} option.captureSrc - 采集源,填写通过createCustomCaptureSource接口创建返回的采集源
|
|
489
|
+
* @param {number} option.enableFlipX - 水平方向是否翻转
|
|
490
|
+
* @param {number} option.enableFlipY - 垂直方向是否翻转
|
|
491
|
+
* @return {boolean} true - 成功, false - 失败,输入的源无效
|
|
492
|
+
*/
|
|
493
|
+
flipCustomCaptureSource(captureSrc: number, enableFlipX: number, enableFlipY: number): boolean;
|
|
494
|
+
/**
|
|
495
|
+
* 旋转自定义采集源
|
|
496
|
+
* @param {object} option - 参数对象
|
|
497
|
+
* @param {number} option.captureSrc - 采集源,填写通过createCustomCaptureSource接口创建返回的采集源
|
|
498
|
+
* @param {number} option.rotationMode- 旋转模式,支持 0-不旋转,90-顺时针旋转90度,180-旋转180度, 270-旋转270度,-90-逆时针旋转90度,等同于旋转270度
|
|
499
|
+
* @return {boolean} true - 成功, false - 失败,输入的源无效,或者不支持的角度
|
|
500
|
+
*/
|
|
501
|
+
rotationCustomCaptureSource(captureSrc: number, rotationMode: number): boolean;
|
|
502
|
+
/**
|
|
503
|
+
* 裁剪采集源
|
|
504
|
+
* @param captureSrc - 采集源,填写通过createCustomCaptureSource接口创建返回的采集源
|
|
505
|
+
* @param cropX - 裁剪的x轴起点
|
|
506
|
+
* @param cropY - 裁剪的y轴起点
|
|
507
|
+
* @param cropWidth - 裁剪的宽度
|
|
508
|
+
* @param cropHeight - 裁剪的高度
|
|
509
|
+
* @returns
|
|
510
|
+
*/
|
|
511
|
+
cropCustomCaptureSource(captureSrc: number, cropX: number, cropY: number, cropWidth: number, cropHeight: number): boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Get the capture Plugin.todo
|
|
514
|
+
*
|
|
515
|
+
* @return {number}
|
|
516
|
+
*/
|
|
517
|
+
getExpressCustomVideoCapturePlugin(): number;
|
|
518
|
+
private callEmit;
|
|
519
|
+
}
|
|
520
|
+
declare const ZegoExpressPluginBlendImageInstance: ZegoExpressPluginBlendImage;
|
|
521
|
+
export { ZegoExpressPluginBlendImageLogLevel, ZGCustomCaptureSourceType, ZegoExpressPluginCustomSourceLayer, ZegoBlendImageViewMode, ZegoExpressPluginScreenCaptureWindowMode, ZegoExpressPluginScreenCaptureWindowStatus, IZegoExpressPluginScreenCaptureRect, IZegoExpressPluginScreenCaptureScreenItem, IZegoExpressPluginScreenCaptureWindowItem, ZegoExpressPluginBlendImageEventHandler, ZegoExpressPluginBlendImageInstance };
|