public static interface CapabilityMediaStreaming.MediaStreamListenerMultiplexer extends CapabilityMediaStreaming.MediaStreamListener
| Modifier and Type | Method and Description |
|---|---|
CapabilityMediaStreaming.MediaStreamListener |
getCallbackHandler(int channelPort)
A function to fetch the stream listener assigned for the port.
|
boolean |
hasCallbackHandlerAssigned(int channelPort)
A function to verify the assignment of stream listener to the channel port.
|
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.
|
void |
removeChannelHandleCallback(int channelPort)
Removes the assigned callback for the channel port.
|
void |
setChannelHandleCallback(int channelPort,
CapabilityMediaStreaming.MediaStreamListener callback)
Sets Stream listener for the channel port.
|
boolean hasCallbackHandlerAssigned(int channelPort)
channelPort - The Port over which this communication should take place.true if assigned; otherwise false.CapabilityMediaStreaming.MediaStreamListener getCallbackHandler(int channelPort)
channelPort - The Port over which this communication should take place.CapabilityMediaStreaming.MediaStreamListener.void setChannelHandleCallback(int channelPort,
CapabilityMediaStreaming.MediaStreamListener callback)
channelPort - The Port over which this communication should take place.callback - CapabilityMediaStreaming.MediaStreamListener.void removeChannelHandleCallback(int channelPort)
channelPort - The Port over which this communication should take place.default void onStatusChanged(long streamHandle,
int channelPort,
CapabilityMediaStreaming.Status status)
CapabilityMediaStreaming.MediaStreamListeneronStatusChanged in interface CapabilityMediaStreaming.MediaStreamListenerstreamHandle - 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.MediaStreamListenerCapabilityMediaStreaming.FrameTypes.onDataReceived in interface CapabilityMediaStreaming.MediaStreamListenerstreamHandle - 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.