- All Implemented Interfaces:
MediaListPlayerEventListener
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 MediaListPlayer.submit(Runnable) method to submit a task for
asynchronous execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmediaListPlayerFinished(MediaListPlayer mediaListPlayer) The media list player finished playing the last item in the list.voidnextItem(MediaListPlayer mediaListPlayer, MediaRef item) The media list player started playing the next item in the list.voidstopped(MediaListPlayer mediaListPlayer) The media list player stopped.
-
Constructor Details
-
MediaListPlayerEventAdapter
public MediaListPlayerEventAdapter()
-
-
Method Details
-
mediaListPlayerFinished
Description copied from interface:MediaListPlayerEventListenerThe media list player finished playing the last item in the list.When the media list player mode is
PlaybackMode.DEFAULT, this event will fire after the last item has been played.When the mode is
PlaybackMode.LOOP, the event will not fire at all.When the mode is
PlaybackMode.REPEAT, the event will fire immediately if the media list player is played (nothing plays in this case); the event will not fire at all if a particular item is played (by index).- Specified by:
mediaListPlayerFinishedin interfaceMediaListPlayerEventListener- Parameters:
mediaListPlayer- media list player that raised the event
-
nextItem
Description copied from interface:MediaListPlayerEventListenerThe media list player started playing the next item in the list.- Specified by:
nextItemin interfaceMediaListPlayerEventListener- Parameters:
mediaListPlayer- media list player that raised the eventitem- next item instance
-
stopped
Description copied from interface:MediaListPlayerEventListenerThe media list player stopped.- Specified by:
stoppedin interfaceMediaListPlayerEventListener- Parameters:
mediaListPlayer- media list player that raised the event
-