Interface POBVideoPlayerView.POBVideoPlayerListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onReadyToPlay(@NonNull() POBVideoPlayerView player) Notifies video content is downloaded and it is ready to play
      abstract void onFailure(int errorCode, @NonNull() String errorMessage) Notifies when ad is failed to load or failed play the ad
      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.
      abstract void onCompletion() Called when the end of a media content is reached during playback.
      abstract void onStart() Notifies Video playback is started, can be used to update play/pause controls
      abstract void onPause() Notifies Video playback is paused, can be used to update play/pause controls
      abstract void onResume() Notifies Video playback is resumed, can be used to update play/pause controls
      abstract void onProgressUpdate(int seekPosition) Notifies video playback position once video playback onStart, can be used to update seek bar
      abstract void onMute(boolean isMute) Notifies Video playback is mute/un-mute, can be used to update mute control
      abstract void onClick() Notifies the video player is clicked
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 code
        errorMessage - 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