com.ooyala.android.ui.LayoutController Interface Reference
Inheritance diagram for com.ooyala.android.ui.LayoutController:
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController com.ooyala.android.ui.OoyalaPlayerLayoutController com.ooyala.android.ui.OptimizedOoyalaPlayerLayoutController

Public Member Functions

FrameLayout getLayout ()
 Get the current active layout to display the video on. More...
 
void setFullscreen (boolean fullscreen)
 Set the fullscreen state. More...
 
boolean isFullscreen ()
 Get the fullscreen state. More...
 
void showClosedCaptionsMenu ()
 Show the Closed Captions selector menu. More...
 
boolean onTouchEvent (MotionEvent event, OoyalaPlayerLayout source)
 Handle the touch events from OoyalaPlayerLayout. More...
 
boolean onKeyUp (int keyCode, KeyEvent event)
 Handle the keydown events from OoyalaPlayerLayout. More...
 
void addVideoView (View videoView)
 Insert the video view into the view hierarchy. More...
 
void removeVideoView ()
 Remove any previously added video view, and related items such as the TV Ratings view. More...
 
void reshowTVRating ()
 Reshow TV rating (if the current FCCTVRatingConfiguration allows it). More...
 
void setFullscreenButtonShowing (boolean showing)
 setFullscreenButtonShowing will enable and disable visibility of the fullscreen button More...
 
void switchVRMode (VrMode mode)
 
void publishVRContent (boolean hasVRContent)
 

Member Function Documentation

void com.ooyala.android.ui.LayoutController.addVideoView ( View  videoView)

Insert the video view into the view hierarchy.

Will automatically include other views such as TV Ratings.

Parameters
videoView

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

FrameLayout com.ooyala.android.ui.LayoutController.getLayout ( )

Get the current active layout to display the video on.

Returns
the current active layout.

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

boolean com.ooyala.android.ui.LayoutController.isFullscreen ( )
boolean com.ooyala.android.ui.LayoutController.onKeyUp ( int  keyCode,
KeyEvent  event 
)

Handle the keydown events from OoyalaPlayerLayout.

Parameters
keyCodethe keycode
eventthe event
Returns

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

boolean com.ooyala.android.ui.LayoutController.onTouchEvent ( MotionEvent  event,
OoyalaPlayerLayout  source 
)

Handle the touch events from OoyalaPlayerLayout.

Parameters
eventthe event
sourcethe layout that created the event
Returns

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.publishVRContent ( boolean  hasVRContent)
void com.ooyala.android.ui.LayoutController.removeVideoView ( )

Remove any previously added video view, and related items such as the TV Ratings view.

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.reshowTVRating ( )

Reshow TV rating (if the current FCCTVRatingConfiguration allows it).

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.setFullscreen ( boolean  fullscreen)

Set the fullscreen state.

Parameters
fullscreentrue for fullscreen, false for inline

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.setFullscreenButtonShowing ( boolean  showing)

setFullscreenButtonShowing will enable and disable visibility of the fullscreen button

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.showClosedCaptionsMenu ( )

Show the Closed Captions selector menu.

Implemented in com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.

void com.ooyala.android.ui.LayoutController.switchVRMode ( VrMode  mode)