com.ooyala.android.player.PlayerInterface Interface Reference

The interface that must be implemented in order to receive control events from Ooyala UI. More...

Inheritance diagram for com.ooyala.android.player.PlayerInterface:
com.ooyala.android.freewheelsdk.FWAdPlayer com.ooyala.android.player.Player com.ooyala.cast.CastPlayer com.ooyala.android.player.MoviePlayer com.ooyala.android.player.StreamPlayer com.ooyala.android.player.AdMoviePlayer com.ooyala.android.player.ExoMoviePlayer com.ooyala.android.player.BaseStreamPlayer com.ooyala.android.player.exoplayer.BaseExoPlayer com.ooyala.android.ads.ooyala.OoyalaAdPlayer com.ooyala.android.ads.vast.VASTAdPlayer com.ooyala.android.imasdk.IMAAdPlayer com.ooyala.android.player.exoplayer.ExoStreamPlayer

Public Member Functions

void pause ()
 This is called when pause is clicked. More...
 
void play ()
 This is called when play is clicked. More...
 
void stop ()
 This is called when stop is clicked. More...
 
int currentTime ()
 
int duration ()
 
int buffer ()
 
boolean seekable ()
 
void seekToTime (int timeInMillis)
 Move the playhead to a new location in seconds with millisecond accuracy. More...
 
State getState ()
 This returns the player state. More...
 
int livePlayheadPercentage ()
 
void seekToPercentLive (float percent)
 Seek to the given percent position of scrubber for live stream playback. More...
 
boolean isLiveClosedCaptionsAvailable ()
 
void setClosedCaptionsLanguage (String language)
 Set the displayed closed captions language. More...
 
OoyalaException getError ()
 
void setVolume (float volume)
 Set the volume for the player. More...
 
PlayerType getPlayerType ()
 Get the player's type. More...
 
boolean isMultiAudioAvailable ()
 
void createBitmapScreenshot (final PlayerBitmapListener playerBitmapListener)
 Create the bitmap screenshot of the current video frame. More...
 

Detailed Description

The interface that must be implemented in order to receive control events from Ooyala UI.

Member Function Documentation

void com.ooyala.android.player.PlayerInterface.createBitmapScreenshot ( final PlayerBitmapListener  playerBitmapListener)

Create the bitmap screenshot of the current video frame.

Parameters
playerBitmapListenerthe interface that must be implemented in order to receive bitmap screenshot from Ooyala ExoPlayer

Implemented in com.ooyala.android.player.exoplayer.ExoStreamPlayer, com.ooyala.android.player.MoviePlayer, and com.ooyala.android.player.Player.

State com.ooyala.android.player.PlayerInterface.getState ( )
boolean com.ooyala.android.player.PlayerInterface.isLiveClosedCaptionsAvailable ( )
boolean com.ooyala.android.player.PlayerInterface.isMultiAudioAvailable ( )
int com.ooyala.android.player.PlayerInterface.livePlayheadPercentage ( )
boolean com.ooyala.android.player.PlayerInterface.seekable ( )
Returns
true if the current player is seekable, false if there is no current player or it is not seekable

Implemented in com.ooyala.android.player.exoplayer.BaseExoPlayer, com.ooyala.android.freewheelsdk.FWAdPlayer, com.ooyala.android.player.MoviePlayer, com.ooyala.cast.CastPlayer, and com.ooyala.android.player.Player.

void com.ooyala.android.player.PlayerInterface.seekToPercentLive ( float  percent)

Seek to the given percent position of scrubber for live stream playback.

Parameters
percentThe percent of scrubber the cursor ends after seek

Implemented in com.ooyala.android.player.exoplayer.BaseExoPlayer, com.ooyala.android.freewheelsdk.FWAdPlayer, com.ooyala.cast.CastPlayer, com.ooyala.android.player.MoviePlayer, and com.ooyala.android.player.Player.

void com.ooyala.android.player.PlayerInterface.seekToTime ( int  timeInMillis)
void com.ooyala.android.player.PlayerInterface.setClosedCaptionsLanguage ( String  language)

Set the displayed closed captions language.

Parameters
language2 letter country code of the language to display or nil to hide closed captions

Implemented in com.ooyala.android.player.exoplayer.BaseExoPlayer, com.ooyala.android.freewheelsdk.FWAdPlayer, com.ooyala.android.player.MoviePlayer, com.ooyala.cast.CastPlayer, and com.ooyala.android.player.Player.