ATVSubtitle
@interface ATVSubtitle : NSObject
An object for creating a individual subtitle in srt.
-
Subtitle Url, support SRT format currently
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSURL *url;
Swift
var url: URL! { get set }
-
Subtitle display label, e.g. Chinese, English
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *label;
Swift
var label: String! { get set }
-
Factory method that creates ATVSubtitle object with url and label. - parameter: url URL of the subtitle. - parameter: label Label for this subtitle, useful for display if you add custom subtitle control.
Declaration
Objective-C
+ (instancetype)subtitleWithUrl:(NSURL *)url label:(NSString *)label;
Swift
convenience init!(url: URL!, label: String!)
Parameters
url
URL of the subtitle.
label
Label for this subtitle, useful for display if you add custom subtitle control.