The OoyalaSkinLayoutController is the primary class of the Ooyala Skin SDK. More...

+ Inheritance diagram for com.ooyala.android.skin.OoyalaSkinLayoutController:

Public Member Functions

 OoyalaSkinLayoutController (Application app, OoyalaSkinLayout layout, OoyalaPlayer player)
 Create the OoyalaSkinLayoutController, which is the core unit of the Ooyala Skin Integration. More...
 
 OoyalaSkinLayoutController (Application app, OoyalaSkinLayout layout, OoyalaPlayer player, SkinOptions skinOptions)
 Create the OoyalaSkinLayoutController, which is the core unit of the Ooyala Skin Integration. More...
 
ClosedCaptionsStyle getClosedCaptionsDeviceStyle ()
 
void setClosedCaptionsDeviceStyle (ClosedCaptionsStyle closedCaptionsDeviceStyle)
 
int getWidth ()
 
int getHeight ()
 
void ccStyleChanged ()
 
void initClosedCaptionsSkinStyleSetting ()
 
void callback (Object results, OoyalaException error)
 
BridgeEventHandler getBridgeEventHandler ()
 
FrameLayout getLayout ()
 
float getCurrentVolume ()
 
void setVolume (float volume)
 
void setFullscreen (boolean isFullscreen)
 
boolean isFullscreen ()
 
void showClosedCaptionsMenu ()
 
boolean onTouchEvent (MotionEvent event, OoyalaPlayerLayout source)
 
boolean onKeyUp (int keyCode, KeyEvent event)
 
boolean onKeyDown (int keyCode, KeyEvent event)
 
void addVideoView (View videoView)
 
void removeVideoView ()
 
void reshowTVRating ()
 
void setFullscreenButtonShowing (boolean showing)
 
void publishVRContent (boolean hasVRContent)
 
void switchVRMode (VrMode vrMode)
 
void maybeStartUpNext ()
 
void requestDiscovery ()
 
void onFrameChangeCallback (int width, int height, int prevWdith, int prevHeight)
 
void onFullscreenToggleCallback ()
 
void sendEvent (String event, WritableMap map)
 
void onPause ()
 
void onResume (Activity activity, DefaultHardwareBackBtnHandler defaultBackButtonImpl)
 
void onBackPressed ()
 
void onDestroy ()
 
void destroy ()
 Call this if you plan on destroying this instance of the OoyalaSkinLayoutController. More...
 
boolean onKey (View view, int i, KeyEvent keyEvent)
 

Static Public Attributes

static final String CONTROLLER_KEY_PRESS_EVENT = "controllerKeyPressEvent"
 
static final String FULLSCREEN_CHANGED_NOTIFICATION_NAME = "fullscreenChanged"
 This is used to detect fullscreen open and close events With this notification we will send data as state of fullscreen which is isFullscreen = true/false. More...
 
static final String VR_MODE_CHANGED_NOTIFICATION_NAME = "vrModeChanged"
 

Protected Member Functions

void finalize () throws Throwable
 

Package Functions

boolean isUpNextDismissed ()
 
void updateBridgeWithCurrentState ()
 
void sendNotification (String notificationName)
 
void sendNotification (String notificationName, Object data)
 
void sendNotification (OoyalaNotification notification)
 
void handlePlay ()
 
void handlePlayPause ()
 
void handleLearnMore ()
 
void handleSkip ()
 
void handleUpNextDismissed ()
 
void handleAdIconClick (int index)
 
void handleShare ()
 

Package Attributes

final String TAG = this.getClass().toString()
 
DiscoveryOptions discoveryOptions
 
ClosedCaptionsStyle closedCaptionsDeviceStyle
 
int width
 
int height
 
String shareTitle
 
String shareUrl
 

Detailed Description

The OoyalaSkinLayoutController is the primary class of the Ooyala Skin SDK.

The OoyalaSkinLayoutController provides:

  • Manipulation of views in Layout
  • All of the React Native initialization
  • Observation of the OoyalaPlayer to provide up-to-date state to the UI
  • Handlers of all React Native callbacks

Constructor & Destructor Documentation

com.ooyala.android.skin.OoyalaSkinLayoutController.OoyalaSkinLayoutController ( Application  app,
OoyalaSkinLayout  layout,
OoyalaPlayer  player 
)
inline

Create the OoyalaSkinLayoutController, which is the core unit of the Ooyala Skin Integration.

Parameters
appThe Application instance for your app
layoutAn OoyalaSkinLayout to render the player and the skin
playerAn initialized OoyalaPlayer
com.ooyala.android.skin.OoyalaSkinLayoutController.OoyalaSkinLayoutController ( Application  app,
OoyalaSkinLayout  layout,
OoyalaPlayer  player,
SkinOptions  skinOptions 
)
inline

Create the OoyalaSkinLayoutController, which is the core unit of the Ooyala Skin Integration.

Parameters
appThe Application instance for your app
layoutAn OoyalaSkinLayout to render the player and the skin
playerAn initialized OoyalaPlayer
skinOptionsan instance of the SkinOptions, to use to configure your skin

Member Function Documentation

void com.ooyala.android.skin.OoyalaSkinLayoutController.addVideoView ( View  videoView)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.callback ( Object  results,
OoyalaException  error 
)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.ccStyleChanged ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.destroy ( )
inline

Call this if you plan on destroying this instance of the OoyalaSkinLayoutController.

void com.ooyala.android.skin.OoyalaSkinLayoutController.finalize ( ) throws Throwable
inlineprotected
BridgeEventHandler com.ooyala.android.skin.OoyalaSkinLayoutController.getBridgeEventHandler ( )
inline
ClosedCaptionsStyle com.ooyala.android.skin.OoyalaSkinLayoutController.getClosedCaptionsDeviceStyle ( )
inline
float com.ooyala.android.skin.OoyalaSkinLayoutController.getCurrentVolume ( )
inline
int com.ooyala.android.skin.OoyalaSkinLayoutController.getHeight ( )
inline
FrameLayout com.ooyala.android.skin.OoyalaSkinLayoutController.getLayout ( )
inline
int com.ooyala.android.skin.OoyalaSkinLayoutController.getWidth ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.handleAdIconClick ( int  index)
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handleLearnMore ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handlePlay ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handlePlayPause ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handleShare ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handleSkip ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.handleUpNextDismissed ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.initClosedCaptionsSkinStyleSetting ( )
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.isFullscreen ( )
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.isUpNextDismissed ( )
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.maybeStartUpNext ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onBackPressed ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onDestroy ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onFrameChangeCallback ( int  width,
int  height,
int  prevWdith,
int  prevHeight 
)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onFullscreenToggleCallback ( )
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.onKey ( View  view,
int  i,
KeyEvent  keyEvent 
)
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.onKeyDown ( int  keyCode,
KeyEvent  event 
)
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.onKeyUp ( int  keyCode,
KeyEvent  event 
)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onPause ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.onResume ( Activity  activity,
DefaultHardwareBackBtnHandler  defaultBackButtonImpl 
)
inline
boolean com.ooyala.android.skin.OoyalaSkinLayoutController.onTouchEvent ( MotionEvent  event,
OoyalaPlayerLayout  source 
)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.publishVRContent ( boolean  hasVRContent)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.removeVideoView ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.requestDiscovery ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.reshowTVRating ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.sendEvent ( String  event,
WritableMap  map 
)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.sendNotification ( String  notificationName)
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.sendNotification ( String  notificationName,
Object  data 
)
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.sendNotification ( OoyalaNotification  notification)
inlinepackage
void com.ooyala.android.skin.OoyalaSkinLayoutController.setClosedCaptionsDeviceStyle ( ClosedCaptionsStyle  closedCaptionsDeviceStyle)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.setFullscreen ( boolean  isFullscreen)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.setFullscreenButtonShowing ( boolean  showing)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.setVolume ( float  volume)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.showClosedCaptionsMenu ( )
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.switchVRMode ( VrMode  vrMode)
inline
void com.ooyala.android.skin.OoyalaSkinLayoutController.updateBridgeWithCurrentState ( )
inlinepackage

Member Data Documentation

ClosedCaptionsStyle com.ooyala.android.skin.OoyalaSkinLayoutController.closedCaptionsDeviceStyle
package
final String com.ooyala.android.skin.OoyalaSkinLayoutController.CONTROLLER_KEY_PRESS_EVENT = "controllerKeyPressEvent"
static
DiscoveryOptions com.ooyala.android.skin.OoyalaSkinLayoutController.discoveryOptions
package
final String com.ooyala.android.skin.OoyalaSkinLayoutController.FULLSCREEN_CHANGED_NOTIFICATION_NAME = "fullscreenChanged"
static

This is used to detect fullscreen open and close events With this notification we will send data as state of fullscreen which is isFullscreen = true/false.

int com.ooyala.android.skin.OoyalaSkinLayoutController.height
package
String com.ooyala.android.skin.OoyalaSkinLayoutController.shareTitle
package
String com.ooyala.android.skin.OoyalaSkinLayoutController.shareUrl
package
final String com.ooyala.android.skin.OoyalaSkinLayoutController.TAG = this.getClass().toString()
package
final String com.ooyala.android.skin.OoyalaSkinLayoutController.VR_MODE_CHANGED_NOTIFICATION_NAME = "vrModeChanged"
static
int com.ooyala.android.skin.OoyalaSkinLayoutController.width
package

The documentation for this class was generated from the following file:
  • OoyalaSkinLayoutController.java