OOClosedCaptions.h
1 #import <Foundation/Foundation.h>
2 #import "OOReturnState.h"
3 
4 @class OOCaption;
5 
10 @interface OOClosedCaptions : NSObject
11 
13 @property(readonly, nonatomic) NSArray *languages;
15 @property(readonly, nonatomic) NSString *defaultLanguage;
17 @property(readonly, nonatomic, strong) NSURL *url;
19 @property(readonly, nonatomic, strong) NSDictionary *vttCaptions;
20 
21 - (instancetype)init __attribute__((unavailable("use initWithDictionary:")));
22 
30 - (instancetype)initWithDictionary:(NSDictionary *)data;
31 
39 - (OOReturnState)updateWithDictionary:(NSDictionary *)data;
40 
47 - (void)updateWithVttDictionary:(NSDictionary *)data;
48 
56 
62 - (NSArray *)closedCaptionsForLanguage:(NSString *)language;
63 
70 - (OOCaption *)captionForLanguage:(NSString *)language time:(Float64)time;
71 
72 @end
BOOL fetchClosedCaptionsInfo()
INTERNAL.
NSURL * url
URL of the close captions source file.
Definition: OOClosedCaptions.h:17
NSDictionary * vttCaptions
the vtt caption dictionary
Definition: OOClosedCaptions.h:19
(unavailable("use initWithDictionary:" __attribute__()
NSString * defaultLanguage
Default close caption langauge.
Definition: OOClosedCaptions.h:15
An object which represents all closed captions information for the asset.
Definition: OOClosedCaptions.h:10
NSArray * languages
List of available langauges.
Definition: OOClosedCaptions.h:13
Single timed text item.
Definition: OOCaption.h:15