GCKMediaSeekOptions Class
Stay organized with collections
Save and categorize content based on your preferences.
Options for seeking within media with GCKRemoteMediaClient.
- Since
- 4.0
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
|
NSTimeInterval | interval |
| The time interval by which to seek. More...
|
|
BOOL | relative |
| Whether the time interval is relative to the current stream position (YES ) or to the beginning of the stream (NO ). More...
|
|
GCKMediaResumeState | resumeState |
| The action to take after the seek operation has finished. More...
|
|
BOOL | seekToInfinite |
| Whether seek to end of stream or live. More...
|
|
id | customData |
| Custom application-specific data to pass along with the request. More...
|
|
Designated initializer.
Initializes a GCKMediaSeekOptions with default values for all properties.
- (NSTimeInterval) interval |
|
readwritenonatomicassign |
The time interval by which to seek.
The default value is 0
.
Whether the time interval is relative to the current stream position (YES
) or to the beginning of the stream (NO
).
The default value is NO
, indicating an absolute seek position.
- (GCKMediaResumeState) resumeState |
|
readwritenonatomicassign |
The action to take after the seek operation has finished.
The default value is GCKMediaResumeStateUnchanged.
Whether seek to end of stream or live.
- Since
- 4.4.1
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
.
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."],[[["`GCKMediaSeekOptions` allows developers to control seeking within media on a Cast receiver using the `GCKRemoteMediaClient`."],["It provides options for specifying the seek interval, whether it's relative to the current position or the beginning, and the desired playback state after seeking."],["Developers can also include custom application-specific data with the seek request."],["Introduced in Google Cast SDK v4.0, this class inherits from `NSObject`, `NSCopying`, and `NSSecureCoding`."]]],["GCKMediaSeekOptions provides configurations for media seeking within a stream. Key properties include `interval`, defining the seek duration; `relative`, indicating whether the seek is relative to the current position or absolute; `resumeState`, determining the post-seek action; `seekToInfinite`, enabling seeking to the end of a stream or live content and `customData`, which allows for passing application-specific information. An `init` method initializes these options with default values. These options can be utilized with GCKRemoteMediaClient.\n"]]