版本支持: v1.0.0+
接口概述: 设置本地视频预览视图,调用此方法会占用摄像头,设置完成后请务必调用finishSetVideoPreview释放资源
接口定义
- (void)setVideoPreview:(UIView *)preview;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
preview | UIView* | 是 | 无 | 预览视图 |
返回值: 无
版本支持: v1.0.0+
接口概述: 设置完成,释放占用资源
接口定义
- (void)finishSetVideoPreview;
接口参数: 无
返回值: 无
版本支持: v3.3.1+
接口概述: 设置美颜
接口定义
- (void)setVideoBeautyEffect:(NemoBeautyEffectType)type level:(NSInteger)level;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
type | 是 | 默认值 | 美颜类型 | |
level | NSInteger | 是 | 0 | 强度等级 0~100 |
返回值: 无
版本支持: v3.3.1+
接口概述: 设置滤镜
接口定义
- (void)setVideoFilterEffect:(NemoVideoFilterType)type level:(NSInteger)level;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
type | 是 | 默认值 | 滤镜类型 | |
level | NSInteger | 是 | 0 | 强度等级 0~100 |
返回值: 无
版本支持: v1.0.0+
接口概述: 设置虚拟背景样式,支持iOS12及以上系统
接口定义
- (void)setVirtualBackgroudMode:(NemoVirtualBackgroundMode)mode image:(UIImage * _Nullable)image imageWidth:(NSInteger)width imageHeight:(NSInteger)height;
接口参数:
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
mode | 是 | 默认值 | 虚拟背景模式 | |
image | UIImage* | 是 | 无 | 图片 |
width | NSInteger | 是 | 0 | 图片宽度 无背景、背景模糊 0 |
height | NSInteger | 是 | 0 | 图片高度 无背景、背景模糊 0 |
返回值: 无