A class that is passed as the "data" in OoyalaNotifications which have OoyalaPlayer.BITRATE_CHANGED_NOTIFICATION_NAME as the name.
More...
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
com.ooyala.android.notifications.BitrateChangedNotificationInfo.BitrateChangedNotificationInfo |
( |
int |
oldBitrate, |
|
|
int |
newBitrate |
|
) |
| |
Create the notification info object passed with the BITRATE_CHANGED_NOTIFICATION_NAME.
- Parameters
-
oldBitrate | The previously observed bitrate |
newBitrate | The bitrate that is about to be rendered |
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