- Type Parameters:
R- type of result that may be returned when the desired condition arises
- All Implemented Interfaces:
MediaEventListener
- Direct Known Subclasses:
ParsedWaiter,ThumbnailGeneratedWaiter
Base implementation for a conditional waiter for media events.
-
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
Description copied from interface:MediaEventListenerCurrent media meta data changed.- Specified by:
mediaMetaChangedin interfaceMediaEventListener- Parameters:
media- media that raised the eventmetaType- type of meta data that changed
-
mediaSubItemAdded
Description copied from interface:MediaEventListenerA new sub-item was added to the current media.- Specified by:
mediaSubItemAddedin interfaceMediaEventListener- Parameters:
media- media that raised the eventnewChild- native sub-item handle
-
mediaDurationChanged
Description copied from interface:MediaEventListenerThe current media duration changed.- Specified by:
mediaDurationChangedin interfaceMediaEventListener- Parameters:
media- media that raised the eventnewDuration- new duration (number of milliseconds)
-
mediaParsedChanged
Description copied from interface:MediaEventListenerThe current media parsed status changed.- Specified by:
mediaParsedChangedin interfaceMediaEventListener- Parameters:
media- media that raised the eventnewStatus- new parsed status
-
mediaFreed
Description copied from interface:MediaEventListenerThe current media was freed.- Specified by:
mediaFreedin interfaceMediaEventListener- Parameters:
media- media that raised the event
-
mediaStateChanged
Description copied from interface:MediaEventListenerThe current media state changed.- Specified by:
mediaStateChangedin interfaceMediaEventListener- Parameters:
media- media that raised the eventnewState- new state
-
mediaSubItemTreeAdded
Description copied from interface:MediaEventListenerA sub-item tree was added to the media.- Specified by:
mediaSubItemTreeAddedin interfaceMediaEventListener- Parameters:
media- media that raised the eventitem- media item
-
mediaThumbnailGenerated
- Specified by:
mediaThumbnailGeneratedin interfaceMediaEventListener
-