Class CompoundPacketEngine

    • Constructor Detail

      • CompoundPacketEngine

        public CompoundPacketEngine()
    • Method Detail

      • close

        public void close()
        Closes the transformer and underlying transform engine. Nothing to do here.
        Specified by:
        close in interface PacketTransformer
      • getRTCPTransformer

        public PacketTransformer getRTCPTransformer()
        Returns a reference to this class since it is performing RTCP transformations in here.
        Specified by:
        getRTCPTransformer in interface TransformEngine
        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:
        getRTPTransformer in interface TransformEngine
        Returns:
        null since this engine does not require any RTP transformations.
      • reverseTransform

        public RawPacket[] reverseTransform​(RawPacket[] pkts)
        Description copied from interface: PacketTransformer
        Reverse-transforms each packet in an array of packets. Null values must be ignored.
        Specified by:
        reverseTransform in interface PacketTransformer
        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:
        transform in interface PacketTransformer
        Parameters:
        pkts - the packets to be transformed
        Returns:
        the transformed packets