GCKMediaQueueItemBuilder Class
Stay organized with collections
Save and categorize content based on your preferences.
A builder object for constructing new or derived GCKMediaQueueItem
instances.
The builder may be used to derive a GCKMediaQueueItem
from an existing one:
It can also be used to construct a new GCKMediaQueueItem
from scratch:
Inherits NSObject.
The media information associated with this item. More...
Whether the item should automatically start playback when it becomes the current item in the queue. More...
The start time of the item, in seconds. More...
The playback duration for the item, in seconds, or INFINITY
if the stream's actual duration should be used. More...
How long before the previous item ends, in seconds, before the receiver should start preloading this item. More...
The active track IDs for this item. More...
The custom data associated with this item, if any. More...
read
write
nonatomic
copy
The media information associated with this item.
read
write
nonatomic
assign
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
read
write
nonatomic
assign
The start time of the item, in seconds.
The default value is kGCKInvalidTimeInterval
, indicating that a start time does not apply (for example, for a live stream) or that the default start time should be used.
- (NSTimeInterval) playbackDuration
read
write
nonatomic
assign
The playback duration for the item, in seconds, or INFINITY
if the stream's actual duration should be used.
- (NSTimeInterval) preloadTime
read
write
nonatomic
assign
How long before the previous item ends, in seconds, before the receiver should start preloading this item.
The default value is kGCKInvalidTimeInterval
, indicating no preload time.
- (NSArray<NSNumber *>*) activeTrackIDs
read
write
nonatomic
copy
The active track IDs for this item.
read
write
nonatomic
copy
The custom data associated with this item, if any.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCKMediaQueueItemBuilder\u003c/code\u003e constructs and customizes media queue items for Google Cast.\u003c/p\u003e\n"],["\u003cp\u003eIt allows deriving new items from existing ones or building them from scratch.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include media information, autoplay, start time, playback duration, and custom data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild\u003c/code\u003e method creates a \u003ccode\u003eGCKMediaQueueItem\u003c/code\u003e instance from the builder's attributes.\u003c/p\u003e\n"]]],["The `GCKMediaQueueItemBuilder` class constructs `GCKMediaQueueItem` instances. It can initialize with default values or copy attributes from an existing item, including the item ID. You can set properties like `mediaInformation`, `autoplay`, `startTime`, `playbackDuration`, `preloadTime`, `activeTrackIDs`, and `customData`. The `build` method creates a `GCKMediaQueueItem` using the configured attributes. Key actions include initializing the builder, modifying properties, and finally building the item.\n"],null,[]]