GCKMediaInformation Class

GCKMediaInformation Class Reference

Overview

A class that aggregates information about a media item.

Inherits NSObject. Implements <NSCopying>.

Instance Method Summary

(instancetype) - initWithContentID:streamType:contentType:metadata:streamDuration:mediaTracks:textTrackStyle:customData:
 Designated initializer. More...
 
(instancetype) - initWithContentID:streamType:contentType:metadata:streamDuration:customData:
 Legacy initializer; does not include media tracks or text track style. 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...
 
NSTimeInterval streamDuration
 The length of the stream, in seconds, or INFINITY if it is a live stream. More...
 
NSArray * mediaTracks
 The media tracks for this stream. More...
 
GCKMediaTextTrackStyletextTrackStyle
 The text track style for this stream. More...
 
id customData
 The custom data, if any. More...
 

Method Detail

- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType streamType
contentType: (NSString *)  contentType
metadata: (GCKMediaMetadata *)  metadata
streamDuration: (NSTimeInterval)  streamDuration
mediaTracks: (NSArray *)  mediaTracks
textTrackStyle: (GCKMediaTextTrackStyle *)  textTrackStyle
customData: (id)  customData 

Designated initializer.

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.
- (instancetype) initWithContentID: (NSString *)  contentID
streamType: (GCKMediaStreamType streamType
contentType: (NSString *)  contentType
metadata: (GCKMediaMetadata *)  metadata
streamDuration: (NSTimeInterval)  streamDuration
customData: (id)  customData 

Legacy initializer; does not include media tracks or text track style.

Parameters
contentIDThe content ID.
streamTypeThe stream type.
contentTypeThe content (MIME) type.
metadataThe media item metadata.
streamDurationThe stream duration.
customDataCustom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.

Property Documentation

- (NSString*) contentID
readnonatomiccopy

The content ID for this stream.

- (GCKMediaStreamType) streamType
readnonatomicassign

The stream type.

- (NSString*) contentType
readnonatomiccopy

The content (MIME) type.

- (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.

- (NSArray*) mediaTracks
readnonatomiccopy

The media tracks for this stream.

- (GCKMediaTextTrackStyle*) textTrackStyle
readnonatomiccopy

The text track style for this stream.

- (id) customData
readnonatomicstrong

The custom data, if any.

Google Cast iOS Sender API Reference v 2.10.1 4691