- 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 TypeMethodDescriptionvoidmediaDurationChanged(Media media, long newDuration) The current media duration changed.voidmediaFreed(Media media, MediaRef mediaFreed) The current media was freed.voidmediaMetaChanged(Media media, Meta metaType) Current media meta data changed.voidmediaParsedChanged(Media media, MediaParsedStatus newStatus) The current media parsed status changed.voidmediaStateChanged(Media media, State newState) The current media state changed.voidmediaSubItemAdded(Media media, MediaRef newChild) A new sub-item was added to the current media.voidmediaSubItemTreeAdded(Media media, MediaRef item) A sub-item tree was added to the media.voidmediaThumbnailGenerated(Media media, Picture picture)
-
Method Details
-
mediaMetaChanged
Current media meta data changed.- Parameters:
media- media that raised the eventmetaType- type of meta data that changed
-
mediaSubItemAdded
A new sub-item was added to the current media.- Parameters:
media- media that raised the eventnewChild- native sub-item handle
-
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
The current media was freed.- Parameters:
media- media that raised the eventmediaFreed-
-
mediaStateChanged
The current media state changed.- Parameters:
media- media that raised the eventnewState- new state
-
mediaSubItemTreeAdded
A sub-item tree was added to the media.- Parameters:
media- media that raised the eventitem- media item
-
mediaThumbnailGenerated
- Parameters:
media-picture-
-