Interface VideoEventListener
-
- All Implemented Interfaces:
public interface VideoEventListenerListener 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.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonVideoStarted()Called when video playback has started. abstract UnitonVideoResumed()Called when video playback has resumed from a paused state. abstract UnitonVideoPaused()Called when video playback has been paused. abstract UnitonVideoCompleted()Called when video playback has completed successfully. abstract UnitonAudioStateChanged(Boolean isMuted)Called when the audio state of the video has changed. -
-
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
-
-
-
-