Interface InstreamAdPlayer.AdPlayerListener

  • All Implemented Interfaces:

    
    public interface InstreamAdPlayer.AdPlayerListener
    
                        

    Calls from this listener must be implemented in videoplayer for calculating video ad statistics

    • 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 onAdVideoCompleted() Should be called when video completes
      abstract void onAdVideoError(@NonNull() String message) Should be called when video error occurs
      abstract void onAdVideoPaused() Should be called when video pauses
      abstract void onAdVideoResumed() Should be called when video resumes from pause
      abstract void onAdVideoStarted() Should be called when video starts playing
      abstract void onAdVideoStopped() Should be called when video stops
      abstract void onVolumeChanged(float volume) Should be called when video volume changes
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onAdVideoCompleted

         abstract void onAdVideoCompleted()

        Should be called when video completes

      • onAdVideoError

         abstract void onAdVideoError(@NonNull() String message)

        Should be called when video error occurs

        Parameters:
        message - reason for error
      • onAdVideoPaused

         abstract void onAdVideoPaused()

        Should be called when video pauses

      • onAdVideoResumed

         abstract void onAdVideoResumed()

        Should be called when video resumes from pause

      • onAdVideoStarted

         abstract void onAdVideoStarted()

        Should be called when video starts playing

      • onAdVideoStopped

         abstract void onAdVideoStopped()

        Should be called when video stops

      • onVolumeChanged

         abstract void onVolumeChanged(float volume)

        Should be called when video volume changes

        Parameters:
        volume - - when 1 - full volume, and 0 - mute