Interface VideoEventListener

  • All Implemented Interfaces:

    
    public interface VideoEventListener
    
                        

    Listener interface for receiving video lifecycle and interaction events.

    This interface provides callbacks for various video playback states and user interactions with video advertisements. Implementers can use these events to track video performance, handle audio state changes, and respond to video playback lifecycle events for analytics and user experience optimization.

    • 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 Unit onVideoStarted() Called when video playback has started.
      abstract Unit onVideoResumed() Called when video playback has resumed from a paused state.
      abstract Unit onVideoPaused() Called when video playback has been paused.
      abstract Unit onVideoCompleted() Called when video playback has completed successfully.
      abstract Unit onAudioStateChanged(Boolean isMuted) Called when the audio state of the video has changed.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onVideoStarted

         abstract Unit onVideoStarted()

        Called when video playback has started.

        This method is invoked when the video begins playing for the first time.

      • onVideoResumed

         abstract Unit onVideoResumed()

        Called when video playback has resumed from a paused state.

        This method is invoked when the video continues playing after being paused.

      • onVideoPaused

         abstract Unit onVideoPaused()

        Called when video playback has been paused.

        This method is invoked when the video is temporarily stopped by user action or programmatic control.

      • onVideoCompleted

         abstract Unit onVideoCompleted()

        Called when video playback has completed successfully.

        This method is invoked when the video has played to its end.

      • onAudioStateChanged

         abstract Unit onAudioStateChanged(Boolean isMuted)

        Called when the audio state of the video has changed.

        This method is invoked whenever the video's audio is muted or unmuted, allowing implementers to track audio interaction patterns.

        Parameters:
        isMuted - true if the video is currently muted, false if audio is enabled