GCKMediaQueueItemBuilder Class

GCKMediaQueueItemBuilder Class Reference

Inherits NSObject.

Instance Method Summary

(instancetype) - init
 Constructs a new GCKMediaQueueItemBuilder with attributes initialized to default values. More...
 
(instancetype) - initWithMediaQueueItem:
 Constructs a new GCKMediaQueueItemBuilder with attributes copied from the given GCKMediaQueueItem, including the item ID. More...
 
(GCKMediaQueueItem *) - build
 Builds a GCKMediaQueueItem using the builder's current attributes. More...
 

Properties

GCKMediaInformationmediaInformation
 The media information associated with this item. More...
 
BOOL autoplay
 Whether the item should automatically start playback when it becomes the current item in the queue. More...
 
NSTimeInterval startTime
 The start time of the item, in seconds. More...
 
NSTimeInterval playbackDuration
 The playback duration for the item, in seconds, or INFINITY if the stream's actual duration should be used. More...
 
NSTimeInterval preloadTime
 How long before the previous item ends, in seconds, before the receiver should start preloading this item. More...
 
NSArray * activeTrackIDs
 The active track IDs for this item. More...
 
id customData
 The custom data associated with this item, if any. More...
 

Method Detail

- (instancetype) init

Constructs a new GCKMediaQueueItemBuilder with attributes initialized to default values.

- (instancetype) initWithMediaQueueItem: (GCKMediaQueueItem *)  item

Constructs a new GCKMediaQueueItemBuilder with attributes copied from the given GCKMediaQueueItem, including the item ID.

Parameters
itemThe item to copy.
- (GCKMediaQueueItem *) build

Builds a GCKMediaQueueItem using the builder's current attributes.

Property Documentation

- (GCKMediaInformation*) mediaInformation
readwritenonatomiccopy

The media information associated with this item.

- (BOOL) autoplay
readwritenonatomicassign

Whether the item should automatically start playback when it becomes the current item in the queue.

If NO, the queue will pause when it reaches this item. The default value is YES.

- (NSTimeInterval) startTime
readwritenonatomicassign

The start time of the item, in seconds.

The default value is kInvalidTimeInterval, indicating that a start time does not apply (e.g., for a live stream) or that the default start time should be used.

- (NSTimeInterval) playbackDuration
readwritenonatomicassign

The playback duration for the item, in seconds, or INFINITY if the stream's actual duration should be used.

- (NSTimeInterval) preloadTime
readwritenonatomicassign

How long before the previous item ends, in seconds, before the receiver should start preloading this item.

The default value is kInvalidTimeInterval, indicating no preload time.

- (NSArray*) activeTrackIDs
readwritenonatomiccopy

The active track IDs for this item.

- (id) customData
readwritenonatomiccopy

The custom data associated with this item, if any.

Google Cast iOS Sender API Reference v 2.10.1 4691