Class MediaEventAdapter

java.lang.Object
uk.co.caprica.vlcj.media.MediaEventAdapter
All Implemented Interfaces:
MediaEventListener

public class MediaEventAdapter extends Object implements MediaEventListener
Default implementation of the media player event listener.

Simply override the methods you're interested in.

Events are not raised on the Swing Event Dispatch thread so if updating user interface components in response to these events care must be taken to use SwingUtilities.invokeLater(Runnable).

Equally, care must be taken not to call back into LibVLC from the event handling thread - if an event handler needs to call back into LibVLC it should use the MediaPlayerFactory.submit(Runnable) method to submit a task for asynchronous execution.