Interface MediaListPlayerEventListener
- All Known Implementing Classes:
AudioListPlayerComponent
,CallbackMediaListPlayerComponent
,CallbackMediaListPlayerComponentBase
,EmbeddedMediaListPlayerComponent
,MediaListPlayerEventAdapter
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
mediaListPlayerFinished
(MediaListPlayer mediaListPlayer) The media list player finished playing the last item in the list.void
nextItem
(MediaListPlayer mediaListPlayer, MediaRef item) The media list player started playing the next item in the list.void
stopped
(MediaListPlayer mediaListPlayer) The media list player stopped.
-
Method Details
-
mediaListPlayerFinished
The 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).- Parameters:
mediaListPlayer
- media list player that raised the event
-
nextItem
The media list player started playing the next item in the list.- Parameters:
mediaListPlayer
- media list player that raised the eventitem
- next item instance
-
stopped
The media list player stopped.- Parameters:
mediaListPlayer
- media list player that raised the event
-