Package uk.co.caprica.vlcj.waiter.media
Class MediaWaiter<R>
- java.lang.Object
-
- uk.co.caprica.vlcj.waiter.Waiter<Media,R>
-
- uk.co.caprica.vlcj.waiter.media.MediaWaiter<R>
-
- Type Parameters:
R
- type of result that may be returned when the desired condition arises
- All Implemented Interfaces:
MediaEventListener
- Direct Known Subclasses:
ParsedWaiter
,ThumbnailGeneratedWaiter
public abstract class MediaWaiter<R> extends Waiter<Media,R> implements MediaEventListener
Base implementation for a conditional waiter for media events.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
mediaMetaChanged
public void mediaMetaChanged(Media media, Meta metaType)
Description copied from interface:MediaEventListener
Current media meta data changed.- Specified by:
mediaMetaChanged
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventmetaType
- type of meta data that changed
-
mediaSubItemAdded
public void mediaSubItemAdded(Media media, MediaRef newChild)
Description copied from interface:MediaEventListener
A new sub-item was added to the current media.- Specified by:
mediaSubItemAdded
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventnewChild
- native sub-item handle
-
mediaDurationChanged
public void mediaDurationChanged(Media media, long newDuration)
Description copied from interface:MediaEventListener
The current media duration changed.- Specified by:
mediaDurationChanged
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventnewDuration
- new duration (number of milliseconds)
-
mediaParsedChanged
public void mediaParsedChanged(Media media, MediaParsedStatus newStatus)
Description copied from interface:MediaEventListener
The current media parsed status changed.- Specified by:
mediaParsedChanged
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventnewStatus
- new parsed status
-
mediaFreed
public void mediaFreed(Media media, MediaRef mediaFreed)
Description copied from interface:MediaEventListener
The current media was freed.- Specified by:
mediaFreed
in interfaceMediaEventListener
- Parameters:
media
- media that raised the event
-
mediaStateChanged
public void mediaStateChanged(Media media, State newState)
Description copied from interface:MediaEventListener
The current media state changed.- Specified by:
mediaStateChanged
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventnewState
- new state
-
mediaSubItemTreeAdded
public void mediaSubItemTreeAdded(Media media, MediaRef item)
Description copied from interface:MediaEventListener
A sub-item tree was added to the media.- Specified by:
mediaSubItemTreeAdded
in interfaceMediaEventListener
- Parameters:
media
- media that raised the eventitem
- media item
-
mediaThumbnailGenerated
public void mediaThumbnailGenerated(Media media, Picture picture)
- Specified by:
mediaThumbnailGenerated
in interfaceMediaEventListener
-
-