AliyunVideoRecordController

@protocol AliyunVideoRecordController <AliyunVideoBaseRecordController>

全功能的视频控制器 API_AVAILABLE(3.22.0)

  • API_AVAILABLE(3.22.0) 预览视图

    必须设置

    Declaration

    Objective-C

    @property (nonatomic, weak) UIView *preview
  • 录制的视频是否左右翻转(只影响输出,不影响预览) API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL isVideoMirror;
  • 美颜状态是否开启 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL beautifyStatus;
  • 设置美颜度 [0,100] API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) int beautifyValue;
  • API_AVAILABLE(3.22.0) 是否开启人脸识别

    使用自带人脸识别,开启该功能,系统会在检测到有人脸动图加入时自动进行追踪显示

    Declaration

    Objective-C

    @property (nonatomic) BOOL useFaceDetect;
  • API_AVAILABLE(3.22.0) 设置识别人脸的个数 当设置值小于1时,默认为1;当设置值大于3时,默认为3

    最大是3个 最小是1个 如果不需要检测人脸 使用:useFaceDetect = NO

    Declaration

    Objective-C

    @property (nonatomic) int faceDetectCount;
  • API_AVAILABLE(3.22.0) 人脸数量的回调

    在useFaceDetect开启的状态下生效

    Declaration

    Objective-C

    @property (nonatomic, copy) void (^)(int) faceNumbersCallback;
  • API_AVAILABLE(3.22.0) 是否同步贴合人脸

    同步贴合人脸动图会在同步线程执行,优点是贴合性强,缺点是性能差的设备会有卡顿现象 非同步贴合人脸动图,有点是画面流畅但贴图贴合性不强 默认是YES,6及以下机型建议异步,6以上建议同步

    Declaration

    Objective-C

    @property (nonatomic) BOOL faceDectectSync;
  • API_AVAILABLE(3.22.0) 人脸追踪 用户可以选择其他人脸识别库,但是传进来的数据须封装成AliyunFacePoint

    Declaration

    Objective-C

    - (void)faceTrack:(NSArray<AliyunFacePoint *> *)facePoints;

    Parameters

    facePoints

    人脸点数组

  • API_AVAILABLE(3.22.0) 拍摄一张图片 异步获取

    image 采集的渲染后图片 rawImage 采集的原始图片

    Declaration

    Objective-C

    - (void)takePhoto:(void (^)(UIImage *, UIImage *))handler;
  • API_AVAILABLE(3.22.0) 添加人脸贴图

    Declaration

    Objective-C

    - (int)applyFaceSticker:(NSString *)configDirectory;

    Parameters

    configDirectory

    人脸贴图配置文件夹路径

  • API_AVAILABLE(3.22.0) 删除人脸贴图

    Declaration

    Objective-C

    - (void)deleteFaceSticker;
  • API_AVAILABLE(3.22.0) 添加动图

    Declaration

    Objective-C

    - (AliyunGifStickerController *)addGifStickerWithConfig:
        (NSString *)configDirectory;

    Parameters

    configDirectory

    动图配置文件夹路径

  • 添加图片 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (AliyunImageStickerController *)addImageSticker:(NSString *)imagePath;

    Parameters

    image

    图片

  • 删除贴纸 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteSticker:(int)stickerId;

    Parameters

    stickerId

    贴纸id

  • 添加滤镜 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (int)applyFilter:(AliyunEffectFilter *)filter;

    Parameters

    filter

    滤镜

  • 删除滤镜 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteFilter;
  • 添加动效滤镜 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (int)applyAnimationFilter:(AliyunEffectFilter *)filter;

    Parameters

    filter

    滤镜

    Return Value

    返回值

  • 更新动效滤镜 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (int)updateAnimationFilter:(AliyunEffectFilter *)filter;

    Parameters

    filter

    滤镜

    Return Value

    返回值

  • 删除动效滤镜 API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteAnimationFilter;