Class CompoundPacketEngine
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.rtcp.CompoundPacketEngine
-
- All Implemented Interfaces:
PacketTransformer,TransformEngine
public class CompoundPacketEngine extends Object implements TransformEngine, PacketTransformer
Implements a TransformEngine which splits incoming RTCP compound packets into individual packets.- Author:
- Boris Grozev
-
-
Constructor Summary
Constructors Constructor Description CompoundPacketEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the transformer and underlying transform engine.PacketTransformergetRTCPTransformer()Returns a reference to this class since it is performing RTCP transformations in here.PacketTransformergetRTPTransformer()Always returns null since this engine does not require any RTP transformations.RawPacket[]reverseTransform(RawPacket[] pkts)Reverse-transforms each packet in an array of packets.RawPacket[]transform(RawPacket[] pkts)Transforms each packet in an array of packets.
-
-
-
Method Detail
-
close
public void close()
Closes the transformer and underlying transform engine. Nothing to do here.- Specified by:
closein interfacePacketTransformer
-
getRTCPTransformer
public PacketTransformer getRTCPTransformer()
Returns a reference to this class since it is performing RTCP transformations in here.- Specified by:
getRTCPTransformerin interfaceTransformEngine- Returns:
- a reference to this instance of the CompoundPacketEngine.
-
getRTPTransformer
public PacketTransformer getRTPTransformer()
Always returns null since this engine does not require any RTP transformations.- Specified by:
getRTPTransformerin interfaceTransformEngine- Returns:
- null since this engine does not require any RTP transformations.
-
reverseTransform
public RawPacket[] reverseTransform(RawPacket[] pkts)
Description copied from interface:PacketTransformerReverse-transforms each packet in an array of packets. Null values must be ignored.- Specified by:
reverseTransformin interfacePacketTransformer- Parameters:
pkts- the transformed packets to be restored.- Returns:
- the restored packets.
-
transform
public RawPacket[] transform(RawPacket[] pkts)
Transforms each packet in an array of packets. Null values must be ignored. The implementation of CompoundPacketEngine does not transform when sending RTCP packets because the only purpose is to split received compound RTCP packets.- Specified by:
transformin interfacePacketTransformer- Parameters:
pkts- the packets to be transformed- Returns:
- the transformed packets
-
-