com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController Class Referenceabstract
Inheritance diagram for com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController:
com.ooyala.android.ui.LayoutController com.ooyala.android.ui.OoyalaPlayerLayoutController com.ooyala.android.ui.OptimizedOoyalaPlayerLayoutController

Classes

class  ClosedCaptionArrayAdapter
 
enum  DefaultControlStyle
 

Public Member Functions

 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, String pcode, PlayerDomain domain)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, String pcode, PlayerDomain domain, EmbedTokenGenerator generator)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, OoyalaPlayer p)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, String pcode, PlayerDomain domain, DefaultControlStyle dcs)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, String pcode, PlayerDomain domain, DefaultControlStyle dcs, EmbedTokenGenerator generator)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, String pcode, PlayerDomain domain, DefaultControlStyle dcs, EmbedTokenGenerator generator, Options options)
 Instantiate an AbstractOoyalaPlayerLayoutController. More...
 
 AbstractOoyalaPlayerLayoutController (OoyalaPlayerLayout l, OoyalaPlayer p, DefaultControlStyle dcs)
 Instantiate an AbstractOoyalaPlayerLayoutController. 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 setInlineOverlay (OoyalaPlayerControls controlsOverlay)
 
void setFullscreenOverlay (OoyalaPlayerControls controlsOverlay)
 
void setInlineControls (OoyalaPlayerControls controls)
 
void setFullscreenControls (OoyalaPlayerControls controls)
 
OoyalaPlayer getPlayer ()
 Get the OoyalaPlayer associated with this Controller. More...
 
FrameLayout getLayout ()
 Get the current active layout. More...
 
OoyalaPlayerControls getControls ()
 
OoyalaPlayerControls getOverlay ()
 
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...
 
final void setFullscreen (boolean fullscreen)
 Set the fullscreen state. More...
 
boolean isFullscreen ()
 Get the fullscreen state. More...
 
OoyalaPlayerControls createDefaultControls (OoyalaPlayerLayout layout, boolean fullscreen)
 
void showClosedCaptionsMenu ()
 Create and display the list of available languages. More...
 
void setFullscreenButtonShowing (boolean showing)
 setFullscreenButtonShowing will enable and disable visibility of the fullscreen button More...
 
void setClosedCaptionsPresentationStyle ()
 
ClosedCaptionsStyle getClosedCaptionsStyle ()
 
void setClosedCaptionsStyle (ClosedCaptionsStyle closedCaptionsStyle)
 Set the ClosedCaptionsStyle. More...
 
void setClosedCaptionsBottomMargin (int bottomMargin)
 Set the bottomMargin of closedCaptions view. More...
 
void update (Observable arg0, Object arg1)
 
void switchVRMode (VrMode mode)
 
void publishVRContent (boolean hasVRContent)
 

Protected Member Functions

void beforeFullscreenChange ()
 
abstract void doFullscreenChange (boolean fullscreen)
 
void afterFullscreenChange ()
 

Protected Attributes

OoyalaPlayerLayout _layout = null
 
Dialog _fullscreenDialog = null
 
OoyalaPlayerLayout _fullscreenLayout = null
 
OoyalaPlayerControls _inlineControls = null
 
OoyalaPlayerControls _fullscreenControls = null
 
OoyalaPlayerControls _inlineOverlay = null
 
OoyalaPlayerControls _fullscreenOverlay = null
 
OoyalaPlayer _player = null
 
boolean _fullscreenButtonShowing = true
 
List< String > optionList
 
ListView listView
 
AlertDialog ccLanguageDialog
 
boolean ccLanguageDialogCanceled
 
RadioButton ccLanguageDialogUncommittedSelection
 

Constructor & Destructor Documentation

com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
String  pcode,
PlayerDomain  domain 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pcodethe provider code to use
domainthe embed domain to use
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
String  pcode,
PlayerDomain  domain,
EmbedTokenGenerator  generator 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pcodethe provider code to use
domainthe embed domain to use
generatorAn embedTokenGenerator used to sign SAS requests
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
OoyalaPlayer  p 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pthe instantiated player to use
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
String  pcode,
PlayerDomain  domain,
DefaultControlStyle  dcs 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pcodethe provider code to use
domainthe embed domain to use
dcsthe DefaultControlStyle to use (AUTO is default controls, NONE has no controls)
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
String  pcode,
PlayerDomain  domain,
DefaultControlStyle  dcs,
EmbedTokenGenerator  generator 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pcodethe provider code to use
domainthe embed domain to use
dcsthe DefaultControlStyle to use (AUTO is default controls, NONE has no controls)
generatorAn embedTokenGenerator used to sign SAS requests
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
String  pcode,
PlayerDomain  domain,
DefaultControlStyle  dcs,
EmbedTokenGenerator  generator,
Options  options 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pcodethe provider code to use
domainthe embed domain to use
dcsthe DefaultControlStyle to use (AUTO is default controls, NONE has no controls)
generatorAn embedTokenGenerator used to sign SAS requests
optionsExtra values, can be null in which case defaults values are used.
com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.AbstractOoyalaPlayerLayoutController ( OoyalaPlayerLayout  l,
OoyalaPlayer  p,
DefaultControlStyle  dcs 
)

Instantiate an AbstractOoyalaPlayerLayoutController.

Parameters
lthe layout to use
pthe instantiated player to use
dcsthe DefaultControlStyle to use (AUTO is default controls, NONE has no controls)

Member Function Documentation

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

Insert the video view into the view hierarchy.

Will automatically include other views such as TV Ratings.

Parameters
videoView

Implements com.ooyala.android.ui.LayoutController.

void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.afterFullscreenChange ( )
protected
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.beforeFullscreenChange ( )
protected
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.createDefaultControls ( OoyalaPlayerLayout  layout,
boolean  fullscreen 
)
abstract void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.doFullscreenChange ( boolean  fullscreen)
abstractprotected
ClosedCaptionsStyle com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.getClosedCaptionsStyle ( )
Returns
the current ClosedCaptionsStyle
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.getControls ( )
FrameLayout com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.getLayout ( )

Get the current active layout.

Returns
the current active layout

Implements com.ooyala.android.ui.LayoutController.

OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.getOverlay ( )
OoyalaPlayer com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.getPlayer ( )

Get the OoyalaPlayer associated with this Controller.

Returns
the OoyalaPlayer
boolean com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.isFullscreen ( )

Get the fullscreen state.

Returns
true for fullscreen, false for inline

Implements com.ooyala.android.ui.LayoutController.

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

Handle the keydown events from OoyalaPlayerLayout.

Parameters
keyCodethe keycode
eventthe event
Returns

Implements com.ooyala.android.ui.LayoutController.

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

Handle the touch events from OoyalaPlayerLayout.

Parameters
eventthe event
sourcethe layout that created the event
Returns

Implements com.ooyala.android.ui.LayoutController.

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

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

Implements com.ooyala.android.ui.LayoutController.

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

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

Implements com.ooyala.android.ui.LayoutController.

void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setClosedCaptionsBottomMargin ( int  bottomMargin)

Set the bottomMargin of closedCaptions view.

Parameters
bottomMarginthe bottom margin to use
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setClosedCaptionsPresentationStyle ( )
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setClosedCaptionsStyle ( ClosedCaptionsStyle  closedCaptionsStyle)

Set the ClosedCaptionsStyle.

Parameters
closedCaptionsStylethe ClosedCaptionsStyle to use
final void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setFullscreen ( boolean  fullscreen)

Set the fullscreen state.

Parameters
fullscreentrue for fullscreen, false for inline

Implements com.ooyala.android.ui.LayoutController.

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

setFullscreenButtonShowing will enable and disable visibility of the fullscreen button

Implements com.ooyala.android.ui.LayoutController.

void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setFullscreenControls ( OoyalaPlayerControls  controls)
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setFullscreenOverlay ( OoyalaPlayerControls  controlsOverlay)
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setInlineControls ( OoyalaPlayerControls  controls)
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.setInlineOverlay ( OoyalaPlayerControls  controlsOverlay)
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.showClosedCaptionsMenu ( )

Create and display the list of available languages.

Implements com.ooyala.android.ui.LayoutController.

void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.switchVRMode ( VrMode  mode)
void com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.update ( Observable  arg0,
Object  arg1 
)

Member Data Documentation

boolean com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._fullscreenButtonShowing = true
protected
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._fullscreenControls = null
protected
Dialog com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._fullscreenDialog = null
protected
OoyalaPlayerLayout com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._fullscreenLayout = null
protected
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._fullscreenOverlay = null
protected
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._inlineControls = null
protected
OoyalaPlayerControls com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._inlineOverlay = null
protected
OoyalaPlayerLayout com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._layout = null
protected
OoyalaPlayer com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController._player = null
protected
AlertDialog com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.ccLanguageDialog
protected
boolean com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.ccLanguageDialogCanceled
protected
RadioButton com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.ccLanguageDialogUncommittedSelection
protected
ListView com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.listView
protected
List<String> com.ooyala.android.ui.AbstractOoyalaPlayerLayoutController.optionList
protected