class FECSender extends java.lang.Object implements PacketTransformer
Constructor and Description |
---|
FECSender(long ssrc,
int fecRate,
byte ulpfecPT)
Creates a new FECSender instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this PacketTransformer i.e.
|
RawPacket[] |
reverseTransform(RawPacket[] pkts)
Reverse-transforms each packet in an array of packets.
|
void |
setFecRate(int newFecRate)
Updates the fecRate property.
|
void |
setUlpfecPT(byte ulpfecPT)
Sets the ulpfec payload type.
|
RawPacket[] |
transform(RawPacket[] pkts)
Transforms each packet in an array of packets.
|
FECSender(long ssrc, int fecRate, byte ulpfecPT)
ssrc
- the SSRC with which this FECSender will work.fecRate
- the rate at which to add ulpfec packets.ulpfecPT
- the payload to use for ulpfec packets.public RawPacket[] reverseTransform(RawPacket[] pkts)
reverseTransform
in interface PacketTransformer
pkts
- the transformed packets to be restored.public RawPacket[] transform(RawPacket[] pkts)
transform
in interface PacketTransformer
pkts
- the packets to be transformedpublic void close()
close
in interface PacketTransformer
public void setUlpfecPT(byte ulpfecPT)
ulpfecPT
- the payload type.public void setFecRate(int newFecRate)
newFecRate
- the new rate to set.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.