public class RtxTransformer extends 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 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 String DISABLE_NACK_TERMINATION_PNAME
public RtxTransformer(MediaStreamImpl mediaStream)
mediaStream - the MediaStreamImpl for the transformer.public PacketTransformer getRTPTransformer()
TransformEngine.getRTPTransformer().getRTPTransformer in interface TransformEnginepublic PacketTransformer getRTCPTransformer()
TransformEngine.getRTCPTransformer().getRTCPTransformer in interface TransformEnginepublic 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.Copyright © 2021 jitsi.org. All rights reserved.