Interface POBVideoPlayerView.POBVideoPlayerListener
-
- All Implemented Interfaces:
public interface POBVideoPlayerView.POBVideoPlayerListenerVideo Player Listener to provides callback methods like ad ready to play, failed etc.
-
-
Method Summary
Modifier and Type Method Description abstract voidonReadyToPlay(@NonNull() POBVideoPlayerView player)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 voidonProgressUpdate(int seekPosition)Notifies video playback position once video playback onStart, can be used to update seek bar abstract voidonMute(boolean isMute)Notifies Video playback is mute/un-mute, can be used to update mute control abstract voidonClick()Notifies the video player is clicked -
-
Method Detail
-
onReadyToPlay
abstract void onReadyToPlay(@NonNull() POBVideoPlayerView player)
Notifies video content is downloaded and it is ready to play
- Parameters:
player- instance of POBVideoPlayerView
-
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
-
onProgressUpdate
abstract void onProgressUpdate(int seekPosition)
Notifies video playback position once video playback onStart, can be used to update seek bar
- Parameters:
seekPosition- current playback position in milliseconds
-
onMute
abstract void onMute(boolean isMute)
Notifies Video playback is mute/un-mute, can be used to update mute control
- Parameters:
isMute- true if mute else false
-
onClick
abstract void onClick()
Notifies the video player is clicked
-
-
-
-