com.ooyala.android.playback.PlaybackRateInteractions Class Reference
Inheritance diagram for com.ooyala.android.playback.PlaybackRateInteractions:

Public Member Functions

void update (Observable o, Object arg)
 
void setInitialPlaybackSpeed (float initialPlaybackSpeed)
 Set the factor by which playback will be sped up provided the speed is not selected by a user. More...
 
void setSelectedPlaybackSpeed (float selectedPlaybackSpeed)
 Set the user-selected playback speed. More...
 
void setPlaybackSpeedConfiguration (PlaybackSpeedConfiguration configuration)
 Set the playback speed configuration for the current player. More...
 
void setPlaybackRateControl (PlaybackSpeedControl control)
 Set the interface for managing playback speed. More...
 
float getPlaybackSpeed ()
 
void setPlaybackSpeed (float speed)
 Set the playback speed. More...
 
void sendPlaybackEnabledNotification (float speed)
 Send a playback-rate related notification. More...
 
void sendPlaybackRateChangedNotification (float speed)
 Send a notification with new value of playback rate. More...
 
void addPlaybackRateObserver (Observer observer)
 Add an observer to the playback rate sender. More...
 
void deleteObservers ()
 Delete observers of the playback rate sender. More...
 

Member Function Documentation

void com.ooyala.android.playback.PlaybackRateInteractions.addPlaybackRateObserver ( Observer  observer)

Add an observer to the playback rate sender.

void com.ooyala.android.playback.PlaybackRateInteractions.deleteObservers ( )

Delete observers of the playback rate sender.

float com.ooyala.android.playback.PlaybackRateInteractions.getPlaybackSpeed ( )
Returns
The factor by which playback will be sped up
void com.ooyala.android.playback.PlaybackRateInteractions.sendPlaybackEnabledNotification ( float  speed)

Send a playback-rate related notification.

void com.ooyala.android.playback.PlaybackRateInteractions.sendPlaybackRateChangedNotification ( float  speed)

Send a notification with new value of playback rate.

void com.ooyala.android.playback.PlaybackRateInteractions.setInitialPlaybackSpeed ( float  initialPlaybackSpeed)

Set the factor by which playback will be sped up provided the speed is not selected by a user.

void com.ooyala.android.playback.PlaybackRateInteractions.setPlaybackRateControl ( PlaybackSpeedControl  control)

Set the interface for managing playback speed.

See PlaybackSpeedControl

void com.ooyala.android.playback.PlaybackRateInteractions.setPlaybackSpeed ( float  speed)

Set the playback speed.

Ads will always be played at 1x, while the main content can be changed. Playback speed does not work with Ads, Live or VR360 video and the setting will be ignored but it will set the playback speed for the next videos if the speed is a valid speed.

Parameters
speedThe desired playback speed. Must be more than
MIN_PLAYBACK_SPEED
and less than
MAX_PLAYBACK_SPEED
(see com.ooyala.android.playback.PlaybackConstants)
void com.ooyala.android.playback.PlaybackRateInteractions.setPlaybackSpeedConfiguration ( PlaybackSpeedConfiguration  configuration)

Set the playback speed configuration for the current player.

void com.ooyala.android.playback.PlaybackRateInteractions.setSelectedPlaybackSpeed ( float  selectedPlaybackSpeed)

Set the user-selected playback speed.

void com.ooyala.android.playback.PlaybackRateInteractions.update ( Observable  o,
Object  arg 
)