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.
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 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 |
|
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 kGCKInvalidTimeInterval, indicating no preload time.
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readwritenonatomiccopy |
The active track IDs for this item.
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."],[[["The `GCKMediaQueueItemBuilder` class is used to construct new or modify existing `GCKMediaQueueItem` instances, which represent items in a media queue."],["It provides methods to set properties like media information, autoplay, start time, playback duration, preload time, active track IDs, and custom data."],["Developers can derive a new `GCKMediaQueueItem` from an existing one by modifying its attributes using the builder."],["Alternatively, a new `GCKMediaQueueItem` can be built from scratch by setting all desired properties through the builder's methods."],["Finally, the `build` method is called to create the actual `GCKMediaQueueItem` instance based on the builder's current configuration."]]],[]]