Stay organized with collections Save and categorize content based on your preferences.
A class representing a media queue item.
Instances of this object are immutable.
This class is used in two-way communication between a sender application and a receiver application. The sender constructs them to load or insert a list of media items on the receiver application. The GCKMediaStatus from the receiver also contains the list of items represented as instances of this class.
Once loaded, the receiver will assign a unique item ID to each GCKMediaQueueItem, even if the same media gets loaded multiple times.
Inherits NSObject. Implements <NSCopying>.
- (instancetype) initWithMediaInformation: (GCKMediaInformation *) mediaInformation autoplay: (BOOL) autoplay startTime: (NSTimeInterval) startTime preloadTime: (NSTimeInterval) preloadTime activeTrackIDs: (nullable NSArray< NSNumber * > *) activeTrackIDs customData: (nullable id) customDataConstructs a new GCKMediaQueueItem with the given attributes.
See the documentation of the corresponding properties for more information.
nil
. customData Any custom data to associate with the item. May be nil
.
Designated initializer.
Constructs a new GCKMediaQueueItem with the given attributes. See the documentation of the corresponding properties for more information.
nil
. customData Any custom data to associate with the item. May be nil
.
Clears (unassigns) the item ID.
Should be called in order to reuse an existing instance, for example, to add it back to a queue.
Returns a copy of this GCKMediaQueueItem that has been modified by the given block.
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
. When using this item to load a media queue in GCKMediaLoadRequestData, this property in the first item only takes effect if autoplay
in GCKMediaLoadRequestData is nil.
The start time of the item, in seconds.
The default value is kGCKInvalidTimeInterval, indicating that no start time has been set.
- (NSTimeInterval) playbackDuration readnonatomicassignThe playback duration for the item, in seconds, or INFINITY
if the stream's actual duration should be used.
How long before the previous item ends, in seconds, before the receiver should start preloading this item.
The default value is kGCKInvalidTimeInterval, indicating that no preload time has been set.
- (NSArray<NSNumber *>*) activeTrackIDs readnonatomicstrongThe 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 `GCKMediaQueueItem` class represents an immutable media item within a queue, enabling communication between sender and receiver applications."],["Each `GCKMediaQueueItem` is assigned a unique ID by the receiver and includes details like media information, autoplay settings, start time, and playback duration."],["Developers can construct instances with specified attributes or modify existing ones using provided methods to manage queue items effectively."],["This class facilitates loading or inserting media on the receiver and provides status updates through `GCKMediaStatus` instances."],["`GCKMediaQueueItem` supports custom data and active track IDs for enhanced functionality and flexibility in managing media playback."]]],["The `GCKMediaQueueItem` class represents an immutable media queue item used for communication between sender and receiver applications. Key actions include constructing items with attributes like `mediaInformation`, `autoplay`, `startTime`, `preloadTime`, `playbackDuration`, `activeTrackIDs`, and `customData`. Each item receives a unique `itemID` on the receiver. Methods are available to clear the `itemID`, construct a modified copy using a builder block, and set item properties like the associated `mediaInformation`, item's autoplay status, start and preload times.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4