3 #import <GoogleCast/GCKAdBreakClipInfo.h> 4 #import <GoogleCast/GCKAdBreakInfo.h> 5 #import <GoogleCast/GCKDefines.h> 7 #import <Foundation/Foundation.h> 19 GCK_ASSUME_NONNULL_BEGIN
25 typedef NS_ENUM(NSInteger, GCKMediaStreamType) {
27 GCKMediaStreamTypeNone = 0,
29 GCKMediaStreamTypeBuffered = 1,
31 GCKMediaStreamTypeLive = 2,
33 GCKMediaStreamTypeUnknown = 99,
45 @property(nonatomic, copy, readonly) NSString *
contentID;
50 @property(nonatomic, assign, readonly) GCKMediaStreamType
streamType;
65 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSArray<GCKAdBreakInfo *> *
adBreaks;
72 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSArray<GCKAdBreakClipInfo *> *
adBreakClips;
82 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSArray<GCKMediaTrack *> *
mediaTracks;
94 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSString *
entity;
99 @property(nonatomic, strong, readonly, GCK_NULLABLE)
id customData;
119 - (instancetype)initWithContentID:(NSString *)contentID
120 streamType:(GCKMediaStreamType)streamType
121 contentType:(NSString *)contentType
125 streamDuration:(NSTimeInterval)streamDuration
126 mediaTracks:(NSArray<
GCKMediaTrack *> *GCK_NULLABLE_TYPE)mediaTracks
128 customData:(
id GCK_NULLABLE_TYPE)customData;
146 - (instancetype)initWithContentID:(NSString *)contentID
147 streamType:(GCKMediaStreamType)streamType
148 contentType:(NSString *)contentType
150 streamDuration:(NSTimeInterval)streamDuration
151 mediaTracks:(NSArray<
GCKMediaTrack *> *GCK_NULLABLE_TYPE)mediaTracks
153 customData:(
id GCK_NULLABLE_TYPE)customData
156 "initWithContentID:streamType:contentType:metadata:adBreaks:adBreakClips:streamDuration:"
157 "mediaTracks:textTrackStyle:
entity:customData: for ads and
entity support.");
166 - (
GCKMediaTrack *GCK_NULLABLE_TYPE)mediaTrackWithID:(NSInteger)trackID;
202 @property(nonatomic, copy, readwrite) NSString *contentID;
207 @property(nonatomic, assign, readwrite) GCKMediaStreamType streamType;
212 @property(nonatomic, copy, readwrite) NSString *contentType;
222 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSArray<GCKAdBreakInfo *> *adBreaks;
227 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSArray<GCKAdBreakClipInfo *> *adBreakClips;
233 @property(nonatomic, assign, readwrite) NSTimeInterval streamDuration;
238 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSArray<GCKMediaTrack *> *mediaTracks;
248 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSString *
entity;
253 @property(nonatomic, strong, readwrite, GCK_NULLABLE)
id customData;
259 - (instancetype)initWithContentID:(NSString *)contentID;
265 - (instancetype)initWithContentID:(NSString *)contentID
266 entity:(NSString *)entity;
272 - (instancetype)initWithEntity:(NSString *)entity;
291 GCK_ASSUME_NONNULL_END
A class representing a style for a text media track.
Definition: GCKMediaTextTrackStyle.h:92
A class representing an ad break.
Definition: GCKAdBreakInfo.h:16
A class representing an ad break clip.
Definition: GCKAdBreakClipInfo.h:49