- All Known Implementing Classes:
AudioListPlayerComponent
,AudioPlayerComponent
,CallbackMediaListPlayerComponent
,CallbackMediaListPlayerComponentBase
,CallbackMediaPlayerComponent
,EmbeddedMediaListPlayerComponent
,EmbeddedMediaPlayerComponent
,MediaEventAdapter
,MediaWaiter
,ParsedWaiter
,ThumbnailGeneratedWaiter
public interface MediaEventListener
Specification for a component that is interested in receiving event notifications from the media.
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 TypeMethodDescriptionvoid
mediaDurationChanged
(Media media, long newDuration) The current media duration changed.void
mediaFreed
(Media media, MediaRef mediaFreed) The current media was freed.void
mediaMetaChanged
(Media media, Meta metaType) Current media meta data changed.void
mediaParsedChanged
(Media media, MediaParsedStatus newStatus) The current media parsed status changed.void
mediaStateChanged
(Media media, State newState) The current media state changed.void
mediaSubItemAdded
(Media media, MediaRef newChild) A new sub-item was added to the current media.void
mediaSubItemTreeAdded
(Media media, MediaRef item) A sub-item tree was added to the media.void
mediaThumbnailGenerated
(Media media, Picture picture)
-
Method Details
-
mediaMetaChanged
-
mediaSubItemAdded
-
mediaDurationChanged
The current media duration changed.- Parameters:
media
- media that raised the eventnewDuration
- new duration (number of milliseconds)
-
mediaParsedChanged
The current media parsed status changed.- Parameters:
media
- media that raised the eventnewStatus
- new parsed status
-
mediaFreed
-
mediaStateChanged
-
mediaSubItemTreeAdded
-
mediaThumbnailGenerated
-