GCKMediaLoadOptions Class
Stay organized with collections
Save and categorize content based on your preferences.
Options for loading media with GCKRemoteMediaClient
.
- Since
- 4.0
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Whether playback should start immediately. More...
The initial playback position. More...
An array of integers specifying the active tracks. More...
Custom application-specific data to pass along with the request. More...
The user credentials for the media item being loaded. More...
Designated initializer.
Initializes a GCKMediaLoadOptions
with default values for all properties.
read
write
nonatomic
assign
Whether playback should start immediately.
The default value is YES
.
- (NSTimeInterval) playPosition
read
write
nonatomic
assign
The initial playback position.
The default value is kGCKInvalidTimeInterval
, which indicates a default playback position.
read
write
nonatomic
assign
The playback rate.
The default value is 1
.
- (NSArray<NSNumber *>*) activeTrackIDs
read
write
nonatomic
strong
An array of integers specifying the active tracks.
The default value is nil
.
read
write
nonatomic
strong
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
read
write
nonatomic
copy
The user credentials for the media item being loaded.
- Since
- 4.1.1
- (NSString*) credentialsType
read
write
nonatomic
copy
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\u003eGCKMediaLoadOptions\u003c/code\u003e configures media playback on a Cast receiver, controlling aspects like autoplay, initial position, and playback rate.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to customize playback behavior including \u003ccode\u003eautoplay\u003c/code\u003e, \u003ccode\u003eplayPosition\u003c/code\u003e, \u003ccode\u003eplaybackRate\u003c/code\u003e, \u003ccode\u003eactiveTrackIDs\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can specify user credentials using \u003ccode\u003ecredentials\u003c/code\u003e and \u003ccode\u003ecredentialsType\u003c/code\u003e properties, introduced in version 4.1.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGCKMediaLoadOptions\u003c/code\u003e objects are initialized using the designated initializer \u003ccode\u003einit\u003c/code\u003e, setting default values for all properties unless otherwise specified.\u003c/p\u003e\n"]]],["The GCKMediaLoadOptions class provides configuration settings for loading media with GCKRemoteMediaClient. Key actions include initializing media load options with default values and setting properties such as `autoplay` (start playback immediately), `playPosition` (initial playback point), `playbackRate`, and `activeTrackIDs`. It also allows for the inclusion of custom data (`customData`) and user credentials with `credentials` and `credentialsType`. The default values for these are true, `kGCKInvalidTimeInterval`, 1, nil, respectively.\n"],null,[]]