com.ooyala.android.player.PlayerInterfaceUtil Class Reference

Utilities to collect common code around how notifications are generated. More...

Static Public Member Functions

static final OoyalaNotification buildSetStateNotification (OoyalaPlayer.State oldState, OoyalaPlayer.State newState)
 Build the OoyalaNotification to send out when state changes. More...
 
static final OoyalaNotification buildSetDesiredStateNotification ()
 

Detailed Description

Utilities to collect common code around how notifications are generated.

Member Function Documentation

static final OoyalaNotification com.ooyala.android.player.PlayerInterfaceUtil.buildSetDesiredStateNotification ( )
static
static final OoyalaNotification com.ooyala.android.player.PlayerInterfaceUtil.buildSetStateNotification ( OoyalaPlayer.State  oldState,
OoyalaPlayer.State  newState 
)
static

Build the OoyalaNotification to send out when state changes.

Parameters
oldStatethe previous state e.g. PLAYING.
newStatethe new state e.g. PAUSED.
Returns
OoyalaNotification named STATE_CHANGED_NOTIFICATION_NAME, and data that is Map<String,State> with keys OLD_STATE_KEY and NEW_STATE_KEY.