com.ooyala.android.ui.OoyalaPlayerControls Interface Reference
Inheritance diagram for com.ooyala.android.ui.OoyalaPlayerControls:
com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls com.ooyala.android.ui.DefaultOoyalaPlayerFullscreenControls com.ooyala.android.ui.DefaultOoyalaPlayerInlineControls

Public Member Functions

void setParentLayout (OoyalaPlayerLayout layout)
 Set the parent layout that these controls should show on top of. More...
 
void setOoyalaPlayer (OoyalaPlayer player)
 Set the OoyalaPlayer that these controls will control. More...
 
void show ()
 Show these controls (make all controls visible) More...
 
void hide ()
 Hide these controls (make all controls invisible/transparent) More...
 
boolean isShowing ()
 
int bottomBarOffset ()
 
int topBarOffset ()
 
void setFullscreenButtonShowing (boolean showing)
 Enable or disable the fullscreen button. More...
 
void setVisible (boolean visible)
 Enable or disable all controls. More...
 
void refresh ()
 Refresh controls state. More...
 

Member Function Documentation

int com.ooyala.android.ui.OoyalaPlayerControls.bottomBarOffset ( )
Returns
absolute pixel of the bottom bar's top distance to the bottom of the device. used by ClosedCaption to determine offset to the bottom.

Implemented in com.ooyala.android.ui.DefaultOoyalaPlayerFullscreenControls, com.ooyala.android.ui.DefaultOoyalaPlayerInlineControls, and com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.hide ( )

Hide these controls (make all controls invisible/transparent)

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

boolean com.ooyala.android.ui.OoyalaPlayerControls.isShowing ( )
Returns
true if the controls are currently showing, false otherwise

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.refresh ( )

Refresh controls state.

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.setFullscreenButtonShowing ( boolean  showing)
void com.ooyala.android.ui.OoyalaPlayerControls.setOoyalaPlayer ( OoyalaPlayer  player)

Set the OoyalaPlayer that these controls will control.

Parameters
playerthe player to control

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.setParentLayout ( OoyalaPlayerLayout  layout)

Set the parent layout that these controls should show on top of.

This method should add the controls to this layout in the correct positions (but they should not actually be visible)

Parameters
layoutthe layout that these controls should show on top of

Implemented in com.ooyala.android.ui.DefaultOoyalaPlayerFullscreenControls, and com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.setVisible ( boolean  visible)

Enable or disable all controls.

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

void com.ooyala.android.ui.OoyalaPlayerControls.show ( )

Show these controls (make all controls visible)

Implemented in com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.

int com.ooyala.android.ui.OoyalaPlayerControls.topBarOffset ( )
Returns
Absolute pixel of the top bar's distance from the top of the device. Used by Learn More button to determine offset from top.

Implemented in com.ooyala.android.ui.DefaultOoyalaPlayerFullscreenControls, and com.ooyala.android.ui.AbstractDefaultOoyalaPlayerControls.