AI-generated Key Takeaways
-
GCKMediaSeekOptions
allows developers to control seeking within media on a Cast receiver using theGCKRemoteMediaClient
. -
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
, andNSSecureCoding
.
Overview
Options for seeking within media with GCKRemoteMediaClient.
- Since
- 4.0
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Instance Method Summary | |
(instancetype) | - init |
Designated initializer. More... | |
Property Summary | |
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... | |
Method Detail
- (instancetype) init |
Designated initializer.
Initializes a GCKMediaSeekOptions with default values for all properties.
Property Detail
|
readwritenonatomicassign |
The time interval by which to seek.
The default value is 0
.
|
readwritenonatomicassign |
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.
|
readwritenonatomicassign |
The action to take after the seek operation has finished.
The default value is GCKMediaResumeStateUnchanged.
|
readwritenonatomicassign |
Whether seek to end of stream or live.
- Since
- 4.4.1
|
readwritenonatomicstrong |
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
.