Interface InstreamAdPlayer.AdPlayerListener

  • Enclosing interface:
    InstreamAdPlayer

    public static interface InstreamAdPlayer.AdPlayerListener
    Calls from this listener must be implemented in videoplayer for calculating video ad statistics
    • Method Detail

      • onAdVideoStarted

        void onAdVideoStarted()
        Should be called when video starts playing
      • onAdVideoPaused

        void onAdVideoPaused()
        Should be called when video pauses
      • onAdVideoResumed

        void onAdVideoResumed()
        Should be called when video resumes from pause
      • onAdVideoStopped

        void onAdVideoStopped()
        Should be called when video stops
      • onAdVideoError

        void onAdVideoError​(@NonNull
                            java.lang.String message)
        Should be called when video error occurs
        Parameters:
        message - reason for error
      • onAdVideoCompleted

        void onAdVideoCompleted()
        Should be called when video completes
      • onVolumeChanged

        void onVolumeChanged​(float volume)
        Should be called when video volume changes
        Parameters:
        volume - , when 1 - full volume, and 0 - mute