AliyunPasterController

@interface AliyunPasterController : NSObject <AliyunPasterUIEventProtocol>

动图控制器类

  • 设置动图的view

    @warning:一定要设置

    Declaration

    Objective-C

    @property (nonatomic, strong) UIView *pasterView
  • 动图类型

    Declaration

    Objective-C

    @property (nonatomic, readonly) AliyunPasterEffectType pasterType;
  • 动图的旋转角度

    单位:弧度

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterRotate;
  • 动图的位置(x,y)

    Declaration

    Objective-C

    @property (nonatomic) CGPoint pasterPosition;
  • 动图的宽高

    Declaration

    Objective-C

    @property (nonatomic) CGSize pasterSize;
  • 动图的位置大小

    Declaration

    Objective-C

    @property (nonatomic) CGRect pasterFrame;
  • 动图镜像

    Declaration

    Objective-C

    @property (nonatomic) BOOL mirror;
  • 文字内容

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *subtitle;
  • 文字位置

    相对于动图本身的位置大小

    Declaration

    Objective-C

    @property (nonatomic) CGRect subtitleFrame;
  • 文字的后台配置字体

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *subtitleConfigFontName;
  • 文字的后台配置字体的id

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger subtitleConfigFontId;
  • 文字是否描边

    Declaration

    Objective-C

    @property (nonatomic) BOOL subtitleStroke;
  • 文字颜色

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleColor
  • 文字描边颜色

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleStrokeColor
  • 文字的背景颜色

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleBackgroundColor
  • 文字字体

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *subtitleFontName;
  • 关键帧图片

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIImage *kernelImage;
  • 动图开始时间

    单位:秒

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterStartTime;
  • 动图结束时间

    单位:秒

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterEndTime;
  • 动图持续时间

    单位:秒

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterDuration;
  • 动图最小持续时间

    单位:秒

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterMinDuration;
  • 编辑区域

    Declaration

    Objective-C

    @property (nonatomic) CGSize displaySize;
  • 视频输出分辨率

    Declaration

    Objective-C

    @property (nonatomic) CGSize outputSize;
  • 预览大小

    Declaration

    Objective-C

    @property (nonatomic) CGSize previewRenderSize;
  • Undocumented

    Declaration

    Objective-C

    - (NSString *)getIconPath;
  • 关键帧图片

    Declaration

    Objective-C

    - (NSString *)getKernelImagePath;

    Return Value

    图片路径

  • 序列帧

    Declaration

    Objective-C

    - (NSArray<AliyunEffectPasterFrameItem *> *)frames;

    Return Value

    序列帧集合

  • 原始时间

    Declaration

    Objective-C

    - (CGFloat)originDuration;

    Return Value

    时间 单位:秒

  • 文字原始时长

    相对于动图

    Declaration

    Objective-C

    - (CGFloat)originTextDuration;

    Return Value

    时间 单位:秒

  • 文字开始出现的时间 相对于动图

    Declaration

    Objective-C

    - (CGFloat)originTextBeginTime;

    Return Value

    时间 单位:秒

  • 唯一id

    Declaration

    Objective-C

    - (int)eid;

    Return Value

    id

  • 开始编辑 将要进入编辑状态

    Declaration

    Objective-C

    - (void)editWillStart;
  • 开始编辑 进入编辑状态

    Declaration

    Objective-C

    - (void)editDidStart;
  • 开始编辑 进入编辑

    Declaration

    Objective-C

    - (void)editProcess;
  • 完成编辑

    Declaration

    Objective-C

    - (void)editCompleted;
  • 字幕编辑完成

    Declaration

    Objective-C

    - (void)editCompletedWithImage:(UIImage *)image;

    Parameters

    image

    字幕的图片

  • 获取effectPaster

    Declaration

    Objective-C

    - (id)getEffectPaster;

    Return Value

    effectPaster