- All Known Implementing Classes:
AudioListPlayerComponent,CallbackMediaListPlayerComponent,CallbackMediaListPlayerComponentBase,EmbeddedMediaListPlayerComponent,MediaListEventAdapter
public interface MediaListEventListener
Specification for a component that is interested in receiving event notifications from a media list.
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidmediaListEndReached(MediaList mediaList) The end of the media list was reached.voidmediaListItemAdded(MediaList mediaList, MediaRef item, int index) A new media item was added to the list.voidmediaListItemDeleted(MediaList mediaList, MediaRef item, int index) A new media item was deleted from the list.voidmediaListWillAddItem(MediaList mediaList, MediaRef item, int index) A new media item will be added to the list.voidmediaListWillDeleteItem(MediaList mediaList, MediaRef item, int index) A new media item will be deleted from the list.
-
Method Details
-
mediaListWillAddItem
A new media item will be added to the list.- Parameters:
mediaList- listitem- media instance that will be addedindex- index in the list at which the media instance will be added
-
mediaListItemAdded
A new media item was added to the list.- Parameters:
mediaList- listitem- media instance that was addedindex- index in the list at which the media instance was added
-
mediaListWillDeleteItem
A new media item will be deleted from the list.- Parameters:
mediaList- listitem- media instance that will be deletedindex- index in the list at which the media instance will be deleted
-
mediaListItemDeleted
A new media item was deleted from the list.- Parameters:
mediaList- listitem- media instance that was deletedindex- index in the list at which the media instance was deleted
-
mediaListEndReached
The end of the media list was reached.The corresponding native event may in fact never fire.
- Parameters:
mediaList- list
-