Interface InstreamAudioAdPlayer.AdPlayerListener

Enclosing interface:
InstreamAudioAdPlayer

public static interface InstreamAudioAdPlayer.AdPlayerListener
Calls from this listener must be implemented in audioplayer for calculating audio ad statistics
  • Method Details

    • onAdAudioStarted

      void onAdAudioStarted()
      Should be called when audio starts playing
    • onAdAudioPaused

      void onAdAudioPaused()
      Should be called when audio pauses
    • onAdAudioResumed

      void onAdAudioResumed()
      Should be called when audio resumes from pause
    • onAdAudioStopped

      void onAdAudioStopped()
      Should be called when audio stops
    • onAdAudioError

      void onAdAudioError(@NonNull String message)
      Should be called when audio error occurs
      Parameters:
      message - reason for error
    • onAdAudioCompleted

      void onAdAudioCompleted()
      Should be called when audio completes
    • onVolumeChanged

      void onVolumeChanged(float volume)
      Should be called when audio volume changes
      Parameters:
      volume - - range [0.0 .. 1.0], 0.0 is for mute, 1.0 is for full volume