zego-express-engine-electron-plugin-blend-image-private 1.3.0 → 1.3.2
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/index.d.ts +3 -1
- package/index.js +5 -3
- package/mac/ZegoBlendImageNode.node +0 -0
- package/mac/ZegoBlendImageNode.node.dSYM/Contents/Resources/DWARF/ZegoBlendImageNode.node +0 -0
- package/mac/ZegoBlendImageNode.node.dSYM/Contents/Resources/Relocations/aarch64/ZegoBlendImageNode.node.yml +4658 -4633
- package/package.json +1 -1
- package/win/x64/ZegoBlendImageNode.node +0 -0
- package/win/x64/ZegoBlendImageNode.pdb +0 -0
- package/win/x86/ZegoBlendImageNode.node +0 -0
- package/win/x86/ZegoBlendImageNode.pdb +0 -0
package/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const ZGCustomCaptureSourceType: {
|
|
|
20
20
|
COMPLEX_TYPE: number;
|
|
21
21
|
CUSTOM_DATA_TYPE: number;
|
|
22
22
|
TEXT_TYPE: number;
|
|
23
|
+
COPY_DATA_TYPE: number;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* ZegoExpressPluginCustomSourceLayer
|
|
@@ -159,9 +160,10 @@ declare class ZegoExpressPluginBlendImage extends EventEmitter {
|
|
|
159
160
|
*
|
|
160
161
|
* @param captureSrc 摄像头源对象
|
|
161
162
|
* @param effectPlugin 外部实现的美颜插件指针,使用前咨询请使用方式
|
|
163
|
+
* @param effectType 0,使用即构定义接口美颜方式;1,使用字节定义接口美颜方式
|
|
162
164
|
* @returns
|
|
163
165
|
*/
|
|
164
|
-
setCameraCaptureSourceParam(captureSrc: number, effectPlugin: number): boolean;
|
|
166
|
+
setCameraCaptureSourceParam(captureSrc: number, effectPlugin: number, effectType?: number): boolean;
|
|
165
167
|
/**
|
|
166
168
|
* 配置图像源参数,可用于切换图片,更新图片路径即可
|
|
167
169
|
* @param {object} option - 参数对象
|
package/index.js
CHANGED
|
@@ -38,7 +38,8 @@ const ZGCustomCaptureSourceType = {
|
|
|
38
38
|
IMAGE_GIF_TYPE: 5,
|
|
39
39
|
COMPLEX_TYPE: 6,
|
|
40
40
|
CUSTOM_DATA_TYPE: 7,
|
|
41
|
-
TEXT_TYPE: 8
|
|
41
|
+
TEXT_TYPE: 8,
|
|
42
|
+
COPY_DATA_TYPE: 9
|
|
42
43
|
};
|
|
43
44
|
exports.ZGCustomCaptureSourceType = ZGCustomCaptureSourceType;
|
|
44
45
|
/**
|
|
@@ -192,10 +193,11 @@ class ZegoExpressPluginBlendImage extends EventEmitter {
|
|
|
192
193
|
*
|
|
193
194
|
* @param captureSrc 摄像头源对象
|
|
194
195
|
* @param effectPlugin 外部实现的美颜插件指针,使用前咨询请使用方式
|
|
196
|
+
* @param effectType 0,使用即构定义接口美颜方式;1,使用字节定义接口美颜方式
|
|
195
197
|
* @returns
|
|
196
198
|
*/
|
|
197
|
-
setCameraCaptureSourceParam(captureSrc, effectPlugin) {
|
|
198
|
-
return this._addonInstance.setCameraCaptureSourceParam({ captureSrc, effectPlugin });
|
|
199
|
+
setCameraCaptureSourceParam(captureSrc, effectPlugin, effectType = 0) {
|
|
200
|
+
return this._addonInstance.setCameraCaptureSourceParam({ captureSrc, effectPlugin, effectType });
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
201
203
|
* 配置图像源参数,可用于切换图片,更新图片路径即可
|
|
Binary file
|