GCKUIPlaybackRateController Class

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

- (float) playbackRate
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.

- (BOOL) inputEnabled
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.