GCKMediaLoadRequestDataBuilder Class
Stay organized with collections
Save and categorize content based on your preferences.
A builder object for constructing new or derived GCKMediaLoadRequestData
instances.
The builder may be used to derive GCKMediaLoadRequestData
from an existing one.
- Since
- 4.4.1
Inherits NSObject.
The metadata of media item or queue.
The flag to indicate whether playback should start immediately.
The default value is @(YES)
. If this is nil
, the property of GCKMediaQueueItem in queueData
will take effect. If queueData is nil
either, playback will not start immediately.
- (NSTimeInterval) startTime |
|
readwritenonatomicassign |
The initial position to start playback.
The default value is kGCKInvalidTimeInterval, which indicates a default playback position. If playing Video-On-Demand streams, it starts from 0; if playing live streams, it starts from live edge.
The playback rate.
The default value is 1
.
- (NSArray<NSNumber *>*) activeTrackIDs |
|
readwritenonatomicstrong |
An array of integers specifying the active tracks.
The default value is nil
.
Custom application-specific data to pass along with the request.
Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- (NSString*) credentials |
|
readwritenonatomiccopy |
The user credentials for the media item being loaded.
- (NSString*) credentialsType |
|
readwritenonatomiccopy |
- (NSString*) atvCredentials |
|
readwritenonatomiccopy |
- (NSString*) atvCredentialsType |
|
readwritenonatomiccopy |
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 `GCKMediaLoadRequestDataBuilder` class is used to construct or derive instances of `GCKMediaLoadRequestData` for managing media playback on Google Cast devices."],["It provides methods to initialize with default values or from an existing `GCKMediaLoadRequestData` object."],["Developers can set properties like media information, queue data, autoplay, start time, playback rate, active tracks, custom data, and credentials."],["The `build` method creates a new `GCKMediaLoadRequestData` instance with the specified attributes."],["This builder facilitates loading and controlling media playback on Cast receivers."]]],[]]