public class PayloadTypeTransformEngine extends SinglePacketTransformerAdapter implements TransformEngine
Constructor and Description |
---|
PayloadTypeTransformEngine() |
Modifier and Type | Method and Description |
---|---|
void |
addPTMappingOverride(byte originalPt,
byte overridePt)
Adds an additional RTP payload type mapping used to override the payload
type of outgoing RTP packets.
|
void |
close()
Closes this PacketTransformer i.e.
|
PacketTransformer |
getRTCPTransformer()
Always returns null since this engine does not require any
RTCP transformations.
|
PacketTransformer |
getRTPTransformer()
Returns a reference to this class since it is performing RTP
transformations in here.
|
RawPacket |
transform(RawPacket pkt)
Checks if there are any override mappings, if no setting just pass
through the packet.
|
reverseTransform
reverseTransform, transform
public RawPacket transform(RawPacket pkt)
transform
in class SinglePacketTransformerAdapter
pkt
- the RTP RawPacket that we check for need to change
payload type.public void close()
close
in interface PacketTransformer
close
in class SinglePacketTransformer
public PacketTransformer getRTPTransformer()
getRTPTransformer
in interface TransformEngine
public PacketTransformer getRTCPTransformer()
getRTCPTransformer
in interface TransformEngine
public void addPTMappingOverride(byte originalPt, byte overridePt)
This method creates a copy of the local overriding map so that mapping overrides could be set during a call (e.g. after a SIP re-INVITE) in a thread-safe way without using synchronization.
originalPt
- the payload type that we are overridingoverridePt
- the payload type that we are overriding it with
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.