GCKUIPlaybackRateController Class

  • GCKUIPlaybackRateController is a class used to implement a custom stream playback rate UI.

  • Applications can subclass GCKUIPlaybackRateController and override the playbackRate and inputEnabled setters, or use KVO to listen for changes to these properties.

  • The playbackRate property reflects the current stream playback rate from the GCKRemoteMediaClient.

  • The inputEnabled property is set by GCKUIMediaController to enable or disable the UI controls managed by this controller.

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...
 

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.

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.