Interface POBPlayer.POBPlayerListener
-
- All Implemented Interfaces:
@MainThread() public interface POBPlayer.POBPlayerListener
Player Listener to provides callback methods like ad ready to play, failed etc.
-
-
Method Summary
Modifier and Type Method Description abstract voidonPrepared()Notifies video content is downloaded and it is ready to play abstract voidonFailure(int errorCode, @NonNull() String errorMessage)Notifies when ad is failed to load or failed play the ad abstract voidonBufferUpdate(int buffer)Provides callback to update buffer status of video content The received buffering percentage indicates how much of the content has been buffered. abstract voidonCompletion()Called when the end of a media content is reached during playback. abstract voidonStart()Notifies Video playback is started, can be used to update play/pause controls abstract voidonPause()Notifies Video playback is paused, can be used to update play/pause controls abstract voidonResume()Notifies Video playback is resumed, can be used to update play/pause controls abstract voidonStop()Notifies Video playback is stopped, can be used to update play/pause controls abstract voidonProgressUpdate(int currentPosition)Notifies current position of playback -
-
Method Detail
-
onPrepared
abstract void onPrepared()
Notifies video content is downloaded and it is ready to play
-
onFailure
abstract void onFailure(int errorCode, @NonNull() String errorMessage)
Notifies when ad is failed to load or failed play the ad
- Parameters:
errorCode- standard media player error codeerrorMessage- specific to the error code
-
onBufferUpdate
abstract 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.
- Parameters:
buffer- the percent of content(0-100) that has been buffered
-
onCompletion
abstract void onCompletion()
Called when the end of a media content is reached during playback.
-
onStart
abstract void onStart()
Notifies Video playback is started, can be used to update play/pause controls
-
onPause
abstract void onPause()
Notifies Video playback is paused, can be used to update play/pause controls
-
onResume
abstract void onResume()
Notifies Video playback is resumed, can be used to update play/pause controls
-
onStop
abstract void onStop()
Notifies Video playback is stopped, can be used to update play/pause controls
-
onProgressUpdate
abstract void onProgressUpdate(int currentPosition)
Notifies current position of playback
- Parameters:
currentPosition- current seek position
-
-
-
-