com.ooyala.android.notifications.BitrateChangedNotificationInfo Class Reference

A class that is passed as the "data" in OoyalaNotifications which have OoyalaPlayer.BITRATE_CHANGED_NOTIFICATION_NAME as the name. More...

Public Member Functions

 BitrateChangedNotificationInfo (int oldBitrate, int newBitrate)
 Create the notification info object passed with the BITRATE_CHANGED_NOTIFICATION_NAME. More...
 
int getOldBitrate ()
 Get the previously observed bitrate. More...
 
int getNewBitrate ()
 Get the new bitrate that is being reported in this notification. More...
 

Detailed Description

A class that is passed as the "data" in OoyalaNotifications which have OoyalaPlayer.BITRATE_CHANGED_NOTIFICATION_NAME as the name.

This notification is only supported with our ExoPlayer integration

Constructor & Destructor Documentation

com.ooyala.android.notifications.BitrateChangedNotificationInfo.BitrateChangedNotificationInfo ( int  oldBitrate,
int  newBitrate 
)

Create the notification info object passed with the BITRATE_CHANGED_NOTIFICATION_NAME.

Parameters
oldBitrateThe previously observed bitrate
newBitrateThe bitrate that is about to be rendered

Member Function Documentation

int com.ooyala.android.notifications.BitrateChangedNotificationInfo.getNewBitrate ( )

Get the new bitrate that is being reported in this notification.

Returns
The bitrate that is about to be rendered
int com.ooyala.android.notifications.BitrateChangedNotificationInfo.getOldBitrate ( )

Get the previously observed bitrate.

Returns
The previously observed bitrate. Returns 0 if this is the first BitrateChanged notification for this video playback