3 #import <GoogleCast/GCKDefines.h> 5 #import <Foundation/Foundation.h> 12 GCK_ASSUME_NONNULL_BEGIN
18 typedef NS_ENUM(NSInteger, GCKMediaTrackType) {
20 GCKMediaTrackTypeUnknown = 0,
22 GCKMediaTrackTypeText = 1,
24 GCKMediaTrackTypeAudio = 2,
26 GCKMediaTrackTypeVideo = 3,
33 typedef NS_ENUM(NSInteger, GCKMediaTextTrackSubtype) {
35 GCKMediaTextTrackSubtypeUnknown = 0,
37 GCKMediaTextTrackSubtypeSubtitles = 1,
39 GCKMediaTextTrackSubtypeCaptions = 3,
41 GCKMediaTextTrackSubtypeDescriptions = 4,
43 GCKMediaTextTrackSubtypeChapters = 5,
45 GCKMediaTextTrackSubtypeMetadata = 6,
57 - (instancetype)initWithIdentifier:(NSInteger)identifier
58 contentIdentifier:(NSString *GCK_NULLABLE_TYPE)contentIdentifier
59 contentType:(NSString *)contentType
60 type:(GCKMediaTrackType)type
61 textSubtype:(GCKMediaTextTrackSubtype)textSubtype
62 name:(NSString *GCK_NULLABLE_TYPE)name
63 languageCode:(NSString *GCK_NULLABLE_TYPE)languageCode
64 customData:(
id GCK_NULLABLE_TYPE)customData;
67 @property(nonatomic, assign, readonly) NSInteger
identifier;
76 @property(nonatomic, assign, readonly) GCKMediaTrackType
type;
79 @property(nonatomic, assign, readonly) GCKMediaTextTrackSubtype
textSubtype;
82 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSString *
name;
85 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSString *
languageCode;
91 @property(nonatomic, strong, readonly, GCK_NULLABLE)
id customData;
95 GCK_ASSUME_NONNULL_END