Interface POBPlayer.POBPlayerListener

    • 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 onPrepared() 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 onStop() Notifies Video playback is stopped, can be used to update play/pause controls
      abstract void onProgressUpdate(int currentPosition) Notifies current position of playback
      • Methods inherited from class java.lang.Object

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

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

      • 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