Package com.avpkit.mediatool.event
Interface IVideoPictureEvent
-
- All Superinterfaces:
IEvent,IRawMediaEvent,IStreamEvent
- All Known Implementing Classes:
VideoPictureEvent
public interface IVideoPictureEvent extends IRawMediaEvent
Dispatched byIMediaListener.onVideoPicture(IVideoPictureEvent).- Author:
- aclarke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.image.BufferedImagegetImage()The buffered image, if available.java.awt.image.BufferedImagegetJavaData()The Java object registered with this event.IVideoPicturegetMediaData()TheIMediaDatafor this object.IVideoPicturegetPicture()Forwards togetMediaData().-
Methods inherited from interface com.avpkit.mediatool.event.IRawMediaEvent
getTimeStamp, getTimeStamp, getTimeUnit
-
Methods inherited from interface com.avpkit.mediatool.event.IStreamEvent
getStreamIndex
-
-
-
-
Method Detail
-
getMediaData
IVideoPicture getMediaData()
TheIMediaDatafor this object. May be null ifIRawMediaEvent.getJavaData()is not null.The returned
IMediaDatawill only be valid for the duration of theIMediaListenermethod call it was dispatched on and implementations must not access it after that call returns. If you need to keep a copy of this data either copy the data into your own object, or useIMediaData.copyReference()to create a reference that will outlive your call.- Specified by:
getMediaDatain interfaceIRawMediaEvent- Returns:
- the media data, or null if unavailable
-
getPicture
IVideoPicture getPicture()
Forwards togetMediaData().- See Also:
getMediaData()
-
getImage
java.awt.image.BufferedImage getImage()
The buffered image, if available. If null, you must usegetPicture()- Returns:
- the bufferedImage, or null if not available
-
getJavaData
java.awt.image.BufferedImage getJavaData()
The Java object registered with this event. If null, you must useIRawMediaEvent.getMediaData(). Not allIRawMediaEventsupport the ability to attach java data.- Specified by:
getJavaDatain interfaceIRawMediaEvent- Returns:
- the object, or null if not available
-
-