AliyunVideoRecordController

@protocol AliyunVideoRecordController <AliyunVideoBaseRecordController>

* The full function controller of video API_AVAILABLE(3.22.0)

  • * API_AVAILABLE(3.22.0) preview

    must be setup

    Declaration

    Objective-C

    @property (nonatomic, weak) UIView *preview
  • * Horizontal flip for the video (only effect on output, not for preview) API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL isVideoMirror;
  • * Whether beauty mode is enabled or not. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL beautifyStatus;
  • * The beauty level. Valid values: [0, 100] API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    @property (nonatomic) int beautifyValue;
  • * API_AVAILABLE(3.22.0) Whether facial recognition is enabled.

    When facial recognition is enabled, the movements of human faces are automatically detected and tracked.

    Declaration

    Objective-C

    @property (nonatomic) BOOL useFaceDetect;
  • * API_AVAILABLE(3.22.0) Sets the maximum number of faces that can be recognized at the same time. Valid values: 1, 2, and 3.

    To disable facial recognition, set useFaceDetect to NO.

    Declaration

    Objective-C

    @property (nonatomic) int faceDetectCount;
  • * API_AVAILABLE(3.22.0) The callback that outputs the number of human faces.

    This parameter only takes effect when useFaceDetect is set to YES.

    Declaration

    Objective-C

    @property (nonatomic, copy) void (^)(int) faceNumbersCallback;
  • * API_AVAILABLE(3.22.0) Whether to synchronize with the movements of human faces.

    When enabled, the movements of human faces are dynamically synchronized to the video. For models that have poor capabilities, video stuttering may occur. When disabled, the movements of human faces are not dynamically synchronized to the video. This ensures smooth video recording. Default is YES. It is recommended to select Yes for iPhone models above 6.

    Declaration

    Objective-C

    @property (nonatomic) BOOL faceDectectSync;
  • * API_AVAILABLE(3.22.0) Tracks human faces. External face recognition libraries are allowed if face data is represented using AliyunFacePoint.

    Declaration

    Objective-C

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

    Parameters

    facePoints

    The face coordinate in an array.

  • * API_AVAILABLE(3.22.0) Takes a picture asynchronously.

    image The image after rendering. rawImage The original image.

    Declaration

    Objective-C

    - (void)takePhoto:(void (^)(UIImage *, UIImage *))handler;
  • * API_AVAILABLE(3.22.0) Add sticker for face

    Declaration

    Objective-C

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

    Parameters

    configDirectory

    the config directory of face sticker

  • * API_AVAILABLE(3.22.0) delete sticker of face

    Declaration

    Objective-C

    - (void)deleteFaceSticker;
  • * API_AVAILABLE(3.22.0) add gif sticker

    Declaration

    Objective-C

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

    Parameters

    configDirectory

    the config directory of gif sticker

  • * add image sticker API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    imagePath

    the imagePath of sticker

  • * delete sticker API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteSticker:(int)stickerId;

    Parameters

    stickerId

    the id of sticker

  • * add filter API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    filter

    the filter of video

  • * Removes a filter. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteFilter;
  • * Applies an animated filter. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    filter

    The filter to be applied.

    Return Value

    A return value.

  • * update an animated filter. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

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

    Parameters

    filter

    The filter to be applied.

    Return Value

    A return value.

  • * Removes an animated filter. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)deleteAnimationFilter;