AI-generated Key Takeaways
-
GCKUIPlaybackRateController
enables custom stream playback rate UI implementation. -
It allows subclassing and overriding, or using KVO to monitor and update playback rate.
-
GCKUIMediaController
manages playback rate changes and UI control enabling/disabling. -
The
playbackRate
property reflects the current stream playback rate fromGCKRemoteMediaClient
. -
The
inputEnabled
property controls the enabled/disabled state of playback rate UI controls.
Overview
A class that can be used to implement a custom stream playback rate UI.
The application may either subclass this class and override the GCKUIPlaybackRateController::playbackRate and GCKUIPlaybackRateController::inputEnabled setters, or use KVO to listen for changes to these properties, and update its playback rate and/or playback rate UI control(s) accordingly.
- Since
- 4.0
Inherits NSObject.
Instance Method Summary | |
(instancetype) | - init |
Designated initializer. More... | |
Property Summary | |
float | playbackRate |
The current stream playback rate from the GCKRemoteMediaClient. More... | |
BOOL | inputEnabled |
The GCKUIMediaController writes this property to enable or disable the UI control(s) managed by this controller. More... | |
Method Detail
- (instancetype) init |
Designated initializer.
Property Detail
|
readwritenonatomicassign |
The current stream playback rate from the GCKRemoteMediaClient.
The GCKUIMediaController writes this property whenever the playback rate changes. The GCKUIMediaController observes the property (unless it is in the process of writing it) and if it changes, it issues the appropriate media command with the GCKRemoteMediaClient to change the playback rate.
|
readwritenonatomicassign |
The GCKUIMediaController writes this property to enable or disable the UI control(s) managed by this controller.
Media-related UI controls are temporarily disabled while a media command is in-flight.