AliyunPasterManager

Deprecated

please use AliyunStickerManager


@interface AliyunPasterManager : NSObject

已废弃,请使用AliyunStickerManager

  • 动图管理器回调

    Declaration

    Objective-C

    @property (nonatomic, weak) id<AliyunPasterManagerDelegate> delegate;
  • 设置编辑区域

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (nonatomic) CGSize outputSize;
  • 渲染时size

    Declaration

    Objective-C

    @property (nonatomic) CGSize previewRenderSize;
  • 添加动图

    Declaration

    Objective-C

    - (AliyunPasterController *)addPaster:(NSString *)filePath
                                startTime:(double)st
                                 duration:(double)duration;

    Parameters

    filePath

    动图资源路径

    st

    动图开始时间

    duration

    动图持续时间

    Return Value

    返回动图控制器

  • 添加字幕

    Declaration

    Objective-C

    - (AliyunPasterController *)addSubtitle:(NSString *)text
                                     bounds:(CGRect)bounds
                                  startTime:(CGFloat)st
                                   duration:(CGFloat)duration;

    Parameters

    text

    文字

    bounds

    大小

    st

    字幕开始时间

    duration

    字幕持续时间

    Return Value

    返回动图控制器

  • 获取所有的动图控制器

    Declaration

    Objective-C

    - (NSArray *)getAllPasterControllers;

    Return Value

    动图控制器数组

  • 通过id获取pasterController

    Declaration

    Objective-C

    - (AliyunPasterController *)getPasterControllerByObj:(id)obj;

    Parameters

    obj

    id

    Return Value

    pasterController

  • 动图显示区域上某个位置是否存在动图

    Declaration

    Objective-C

    - (AliyunPasterController *)touchPoint:(CGPoint)point atTime:(double)time;

    Parameters

    point

    点击的位置

    time

    当前视频播放的当前时间

    Return Value

    若当前时刻该位置有动图,则返回动图控制器,否则,返回nil

  • 删除所有动图控制器,即删除所有动图

    Declaration

    Objective-C

    - (void)removeAllPasterControllers;
  • API_AVAILABLE(3.7.0)

    删除pasterController 并立即从渲染里面移除

    Declaration

    Objective-C

    - (void)removePasterController:(AliyunPasterController *)pasterController;

    Parameters

    pasterController

    动图控制器对象

  • 删除所有的普通动图

    Declaration

    Objective-C

    - (void)removeAllNormalPasterControllers;
  • 删除所有的字幕动图

    Declaration

    Objective-C

    - (void)removeAllCaptionPasterControllers;
  • 删除所有的纯文字动图

    Declaration

    Objective-C

    - (void)removeAllSubtitlePasterControllers;
  • 获取当前正在编辑的动图控制器

    Declaration

    Objective-C

    - (AliyunPasterController *)getCurrentEditPasterController;

    Return Value

    动图控制器