@MainThread
public static interface POBPlayer.POBPlayerListener
| Modifier and Type | Method and Description |
|---|---|
void |
onBufferUpdate(int buffer)
Provides callback to update buffer status of video content
The received buffering percentage indicates how much of the content has been buffered.
|
void |
onCompletion()
Called when the end of a media content is reached during playback.
|
void |
onFailure(int errorCode,
java.lang.String errorMessage)
Notifies when ad is failed to load or failed play the ad
|
void |
onPause()
Notifies Video playback is paused, can be used to update play/pause controls
|
void |
onPrepared()
Notifies video content is downloaded and it is ready to play
|
void |
onPrepareTimeout()
Notifies timeout due to prepare/stalling
|
void |
onProgressUpdate(int currentPosition)
Notifies current position of playback
|
void |
onResume()
Notifies Video playback is resumed, can be used to update play/pause controls
|
void |
onStart()
Notifies Video playback is started, can be used to update play/pause controls
|
void |
onStop()
Notifies Video playback is stopped, can be used to update play/pause controls
|
void onPrepared()
void onPrepareTimeout()
void onFailure(int errorCode,
@NonNull
java.lang.String errorMessage)
errorCode - standard media player error codeerrorMessage - specific to the error codevoid onBufferUpdate(int buffer)
buffer - the percent of content(0-100) that has been bufferedvoid onCompletion()
void onStart()
void onPause()
void onResume()
void onStop()
void onProgressUpdate(int currentPosition)
currentPosition - current seek position