Package com.avpkit.mediatool.event
Interface IPacketEvent
-
- All Superinterfaces:
ICoderEvent,IEvent,IStreamEvent
- All Known Subinterfaces:
IReadPacketEvent,IWritePacketEvent
- All Known Implementing Classes:
ReadPacketEvent,WritePacketEvent
public interface IPacketEvent extends IStreamEvent, ICoderEvent
- Author:
- aclarke
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IPacketgetPacket()Returns theIPacketfor this event.IMediaCodergetSource()Get the source of this event.-
Methods inherited from interface com.avpkit.mediatool.event.IStreamEvent
getStreamIndex
-
-
-
-
Method Detail
-
getPacket
IPacket getPacket()
Returns theIPacketfor this event.The returned
IPacketwill 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 useIPacket.copyReference()to create a reference that will outlive your call.- Returns:
- the packet
-
getSource
IMediaCoder getSource()
Get the source of this event.- Specified by:
getSourcein interfaceICoderEvent- Specified by:
getSourcein interfaceIEvent- Returns:
- the source.
-
-