public class RtxTransformer extends java.lang.Object implements TransformEngine
MediaStream
, and
removes their RTX encapsulation.
Intercepts NACKs and retransmits packets to a mediaStream (using the RTX
format if the destination supports it).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISABLE_NACK_TERMINATION_PNAME
The name of the property used to disable NACK termination.
|
Constructor and Description |
---|
RtxTransformer(MediaStreamImpl mediaStream)
Initializes a new RtxTransformer with a specific
MediaStreamImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
destinationSupportsRtx()
Returns a boolean that indicates whether or not the destination
endpoint supports RTX.
|
PacketTransformer |
getRTCPTransformer()
Implements
TransformEngine.getRTCPTransformer() . |
PacketTransformer |
getRTPTransformer()
Implements
TransformEngine.getRTPTransformer() . |
void |
onDynamicPayloadTypesChanged()
Notifies this instance that the dynamic payload types of the associated
MediaStream have changed. |
int |
sendPadding(long ssrc,
int bytes)
Sends padding packets with the RTX SSRC associated to the media SSRC that
is passed as a parameter.
|
public static final java.lang.String DISABLE_NACK_TERMINATION_PNAME
public RtxTransformer(MediaStreamImpl mediaStream)
mediaStream
- the MediaStreamImpl for the transformer.public PacketTransformer getRTPTransformer()
TransformEngine.getRTPTransformer()
.getRTPTransformer
in interface TransformEngine
public PacketTransformer getRTCPTransformer()
TransformEngine.getRTCPTransformer()
.getRTCPTransformer
in interface TransformEngine
public boolean destinationSupportsRtx()
public void onDynamicPayloadTypesChanged()
MediaStream
have changed.public int sendPadding(long ssrc, int bytes)
ssrc
- the media SSRC to protect.bytes
- the amount of padding to send in bytes.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.