Class EventApi

java.lang.Object
uk.co.caprica.vlcj.player.base.EventApi

public final class EventApi extends Object
Behaviour pertaining to media player events.
  • Method Details

    • addMediaPlayerEventListener

      public void addMediaPlayerEventListener(MediaPlayerEventListener listener)
      Add a component to be notified of media player events.
      Parameters:
      listener - component to notify
    • removeMediaPlayerEventListener

      public void removeMediaPlayerEventListener(MediaPlayerEventListener listener)
      Remove a component that was previously interested in notifications of media player events.
      Parameters:
      listener - component to stop notifying
    • addMediaEventListener

      public void addMediaEventListener(MediaEventListener listener)
      Add a component to be notified of media events.

      As the current media changes, this listener will automatically be removed from the previous media and added to the new.

      Parameters:
      listener - component to notify
    • removeMediaEventListener

      public void removeMediaEventListener(MediaEventListener listener)
      Remove a component that was previously interested in notifications of media events.
      Parameters:
      listener - component to stop notifying