AliyunRollCaptionItemStyle

@interface AliyunRollCaptionItemStyle : NSObject

翻转字幕的样式

  • 文字 API_AVAILABLE(3.20.0)

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *text;
  • 设置开始时间 API_AVAILABLE(3.20.0)

    单位:秒

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat startTime;
  • 文字颜色, 默认白色 API_AVAILABLE(3.20.0)

    Declaration

    Objective-C

    @property(nonatomic, strong) UIColor *textColor
  • 描边颜色, 默认nil API_AVAILABLE(3.20.0)

    Declaration

    Objective-C

    @property(nonatomic, strong) UIColor *strokeColor
  • 字体,默认系统Helvetica API_AVAILABLE(3.20.0)

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *fontName;
  • 初始化方法 API_AVAILABLE(3.20.0)

    Declaration

    Objective-C

    - (instancetype)initWithText:(NSString *)text startTime:(CGFloat)startTime;

    Parameters

    text

    单个字幕文本

    startTime

    单个字幕开始的时间,单位:秒