public static interface CapabilityMediaStreaming.MediaStreamListener extends Listener
| Modifier and Type | Method and Description |
|---|---|
default void |
onDataReceived(long streamHandle,
int channelPort,
long frameIndex,
int frameType,
long frameDuration,
long framePts,
java.nio.ByteBuffer data)
NOTE: Frame types are present in
CapabilityMediaStreaming.FrameTypes. |
default void |
onStatusChanged(long streamHandle,
int channelPort,
CapabilityMediaStreaming.Status status)
A listener for the stream status change events.
|
default void onStatusChanged(long streamHandle,
int channelPort,
CapabilityMediaStreaming.Status status)
streamHandle - a non zero long value representing a native pointer.channelPort - The Port over which this communication should take placestatus - Status of the stream under consideration. CapabilityMediaStreaming.Statusdefault void onDataReceived(long streamHandle,
int channelPort,
long frameIndex,
int frameType,
long frameDuration,
long framePts,
java.nio.ByteBuffer data)
CapabilityMediaStreaming.FrameTypes.streamHandle - a non zero long value representing a native pointer.channelPort - The Port over which this communication should take place.frameIndex - index which increments on every call.frameType - frame type as present in CapabilityMediaStreaming.FrameTypes.frameDuration - Duration for each frame.framePts - Presentation time stamp field.data - Data received in form of the ByteBuffer.