# GCKUIPlaybackRateController Class

[Instance Methods](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#pub-methods) \| [Properties](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#properties) GCKUIPlaybackRateController Class Reference

## 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](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a0a13c88ff44c5ffc9b46c3c57e98308f "The current stream playback rate from the GCKRemoteMediaClient. ") and [GCKUIPlaybackRateController::inputEnabled](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a1095e75d10d6450a88b818d833877083 "The GCKUIMediaController writes this property to enable or disable the UI control(s) managed by this ...") 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](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#ab6cf728742e962bf448689cd5d56171d) |
|   | Designated initializer. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#ab6cf728742e962bf448689cd5d56171d) |
|   ||

|---|---|
| ## Property Summary ||
| float | [playbackRate](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a0a13c88ff44c5ffc9b46c3c57e98308f) |
|   | The current stream playback rate from the [GCKRemoteMediaClient](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_remote_media_client "A class for controlling media playback on a Cast receiver. "). [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a0a13c88ff44c5ffc9b46c3c57e98308f) |
|   ||
| BOOL | [inputEnabled](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a1095e75d10d6450a88b818d833877083) |
|   | The [GCKUIMediaController](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_media_controller "A controller for UI views that are used to control or display the status of media playback on a Cast ...") writes this property to enable or disable the UI control(s) managed by this controller. [More...](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_playback_rate_controller#a1095e75d10d6450a88b818d833877083) |
|   ||

## Method Detail

|---|---|---|---|
| - (instancetype) init |   |   |   |

Designated initializer.

## Property Detail

|---|---|
| |---| | - (float) playbackRate | | readwritenonatomicassign |

The current stream playback rate from the [GCKRemoteMediaClient](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_remote_media_client "A class for controlling media playback on a Cast receiver. ").

The [GCKUIMediaController](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_media_controller "A controller for UI views that are used to control or display the status of media playback on a Cast ...") writes this property whenever the playback rate changes. The [GCKUIMediaController](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_media_controller "A controller for UI views that are used to control or display the status of media playback on a Cast ...") 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](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_remote_media_client "A class for controlling media playback on a Cast receiver. ") to change the playback rate.

|---|---|
| |---| | - (BOOL) inputEnabled | | readwritenonatomicassign |

The [GCKUIMediaController](https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_media_controller "A controller for UI views that are used to control or display the status of media playback on a Cast ...") 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.