GCKMediaInformation Class Reference

A class that aggregates information about a media item. More...

#import <GCKMediaInformation.h>

+ Inheritance diagram for GCKMediaInformation:

Instance Methods

(instancetype) - initWithContentID:streamType:contentType:metadata:adBreaks:adBreakClips:streamDuration:mediaTracks:textTrackStyle:customData:
 Designated initializer. More...
 
(instancetype) - initWithContentID:streamType:contentType:metadata:streamDuration:mediaTracks:textTrackStyle:customData:
 Deprecated. More...
 
(GCKMediaTrack *GCK_NULLABLE_TYPE) - mediaTrackWithID:
 Searches for a media track with the given track ID. More...
 

Properties

NSString * contentID
 The content ID for this stream. More...
 
GCKMediaStreamType streamType
 The stream type. More...
 
NSString * contentType
 The content (MIME) type. More...
 
GCKMediaMetadatametadata
 The media item metadata. More...
 
NSArray< GCKAdBreakInfo * > * adBreaks
 The list of ad breaks in this content. More...
 
NSArray< GCKAdBreakClipInfo * > * adBreakClips
 The list of ad break clips in this content. More...
 
NSTimeInterval streamDuration
 The length of the stream, in seconds, or INFINITY if it is a live stream. More...
 
NSArray< GCKMediaTrack * > * mediaTracks
 The media tracks for this stream. More...
 
GCKMediaTextTrackStyletextTrackStyle
 The text track style for this stream. More...
 
NSString * entity
 The deep link for the media as used by Google Assistant, if any. More...
 
id customData
 The custom data, if any. More...
 

Detailed Description

A class that aggregates information about a media item.

Method Documentation

- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType)  streamType
contentType: (NSString *)  contentType
metadata: (GCKMediaMetadata *GCK_NULLABLE_TYPE)  metadata
adBreaks: (NSArray< GCKAdBreakInfo * > *GCK_NULLABLE_TYPE)  adBreaks
adBreakClips: (NSArray< GCKAdBreakClipInfo * > *GCK_NULLABLE_TYPE)  adBreakClips
streamDuration: (NSTimeInterval)  streamDuration
mediaTracks: (NSArray< GCKMediaTrack * > *GCK_NULLABLE_TYPE)  mediaTracks
textTrackStyle: (GCKMediaTextTrackStyle *GCK_NULLABLE_TYPE)  textTrackStyle
customData: (id GCK_NULLABLE_TYPE)  customData 

Designated initializer.

Parameters
contentIDThe content ID.
streamTypeThe stream type.
contentTypeThe content (MIME) type.
metadataThe media item metadata.
adBreaksThe list of ad breaks in this content.
adBreakClipsThe list of ad break clips in this content.
streamDurationThe stream duration.
mediaTracksThe media tracks, if any, otherwise nil.
textTrackStyleThe text track style, if any, otherwise nil.
customDataThe custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
Since
4.3
- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType)  streamType
contentType: (NSString *)  contentType
metadata: (GCKMediaMetadata *GCK_NULLABLE_TYPE)  metadata
streamDuration: (NSTimeInterval)  streamDuration
mediaTracks: (NSArray< GCKMediaTrack * > *GCK_NULLABLE_TYPE)  mediaTracks
textTrackStyle: (GCKMediaTextTrackStyle *GCK_NULLABLE_TYPE)  textTrackStyle
customData: ("Use " "initWithContentID:streamType:contentType:metadata:adBreaks:adBreakClips:streamDuration:" "mediaTracks:textTrackStyle:entity:customData: for ads and entity support.")  GCK_DEPRECATED 

Deprecated.

Use initWithContentID:streamType:contentType:metadata:adBreaks: adBreakClips:streamDuration:mediaTracks:textTrackStyle:entity:customData: for ads and entity support.

Parameters
contentIDThe content ID.
streamTypeThe stream type.
contentTypeThe content (MIME) type.
metadataThe media item metadata.
streamDurationThe stream duration.
mediaTracksThe media tracks, if any, otherwise nil.
textTrackStyleThe text track style, if any, otherwise nil.
customDataThe custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
- (GCKMediaTrack *GCK_NULLABLE_TYPE) mediaTrackWithID: (NSInteger)  trackID

Searches for a media track with the given track ID.

Parameters
trackIDThe media track ID.
Returns
The matching GCKMediaTrack object, or nil if there is no media track with the given ID.

Property Documentation

- (NSArray<GCKAdBreakClipInfo *>*) adBreakClips
readnonatomiccopy

The list of ad break clips in this content.

Since
3.3
- (NSArray<GCKAdBreakInfo *>*) adBreaks
readnonatomiccopy

The list of ad breaks in this content.

- (NSString*) contentID
readnonatomiccopy

The content ID for this stream.

- (NSString*) contentType
readnonatomiccopy

The content (MIME) type.

- (id) customData
readnonatomicstrong

The custom data, if any.

- (NSString*) entity
readnonatomiccopy

The deep link for the media as used by Google Assistant, if any.

Since
4.0
- (NSArray<GCKMediaTrack *>*) mediaTracks
readnonatomiccopy

The media tracks for this stream.

- (GCKMediaMetadata*) metadata
readnonatomicstrong

The media item metadata.

- (NSTimeInterval) streamDuration
readnonatomicassign

The length of the stream, in seconds, or INFINITY if it is a live stream.

- (GCKMediaStreamType) streamType
readnonatomicassign

The stream type.

- (GCKMediaTextTrackStyle*) textTrackStyle
readnonatomiccopy

The text track style for this stream.


The documentation for this class was generated from the following file: