public class RTCPFBPacket
extends net.sf.fmj.media.rtp.RTCPPacket
Modifier and Type | Field and Description |
---|---|
byte[] |
fci |
int |
fmt
Feedback message type (FMT).
|
static int |
PSFB |
static int |
RTPFB |
long |
senderSSRC
SSRC of packet sender.
|
long |
sourceSSRC
SSRC of media source.
|
Constructor and Description |
---|
RTCPFBPacket(int fmt,
int type,
long senderSSRC,
long sourceSSRC) |
RTCPFBPacket(net.sf.fmj.media.rtp.RTCPCompoundPacket base) |
Modifier and Type | Method and Description |
---|---|
void |
assemble(java.io.DataOutputStream dataoutputstream) |
int |
calcLength() |
static ByteArrayBuffer |
getFCI(ByteArrayBuffer baf)
Gets the Feedback Control Information (FCI) field of an RTCP FB message.
|
long |
getSenderSSRC() |
long |
getSourceSSRC() |
static long |
getSourceSSRC(ByteArrayBuffer baf)
Gets the SSRC of the media source of the packet specified in the
ByteArrayBuffer passed in as an argument. |
static boolean |
isPSFBPacket(ByteArrayBuffer baf)
Gets a boolean that indicates whether or not the packet specified in the
ByteArrayBuffer passed in as an argument is an RTP FB packet. |
static boolean |
isRTCPFBPacket(ByteArrayBuffer baf)
Gets a boolean that indicates whether or not the packet specified in the
ByteArrayBuffer that is passed in the first argument is an RTCP
RTPFB or PSFB packet. |
static boolean |
isRTPFBPacket(ByteArrayBuffer baf)
Gets a boolean that indicates whether or not the packet specified in the
ByteArrayBuffer passed in as an argument is an RTP FB packet. |
RawPacket |
toRawPacket() |
java.lang.String |
toString() |
public static final int RTPFB
public static final int PSFB
public byte[] fci
public int fmt
public long senderSSRC
public long sourceSSRC
public RTCPFBPacket(int fmt, int type, long senderSSRC, long sourceSSRC)
public RTCPFBPacket(net.sf.fmj.media.rtp.RTCPCompoundPacket base)
public static boolean isRTCPFBPacket(ByteArrayBuffer baf)
ByteArrayBuffer
that is passed in the first argument is an RTCP
RTPFB or PSFB packet.baf
- the ByteArrayBuffer
that holds the RTCP packet.ByteArrayBuffer
that
is passed in the first argument is an RTCP RTPFB or PSFB packet,
otherwise false.public static boolean isRTPFBPacket(ByteArrayBuffer baf)
ByteArrayBuffer
passed in as an argument is an RTP FB packet.baf
- the ByteArrayBuffer
that holds the packetByteArrayBuffer
passed in as an argument is an RTP FB packet, otherwise false.public static boolean isPSFBPacket(ByteArrayBuffer baf)
ByteArrayBuffer
passed in as an argument is an RTP FB packet.baf
- the ByteArrayBuffer
that holds the packetByteArrayBuffer
passed in as an argument is an RTP FB packet, otherwise false.public static long getSourceSSRC(ByteArrayBuffer baf)
ByteArrayBuffer
passed in as an argument.baf
- the ByteArrayBuffer
that holds the packetByteArrayBuffer
passed in as an argument, or -1 in case of an
error.public static ByteArrayBuffer getFCI(ByteArrayBuffer baf)
baf
- the ByteArrayBuffer
that contains the RTCP message.public void assemble(java.io.DataOutputStream dataoutputstream) throws java.io.IOException
assemble
in class net.sf.fmj.media.rtp.RTCPPacket
java.io.IOException
public int calcLength()
calcLength
in class net.sf.fmj.media.rtp.RTCPPacket
public java.lang.String toString()
toString
in class net.sf.fmj.media.rtp.util.Packet
public RawPacket toRawPacket() throws java.io.IOException
RawPacket
representation of this RTCPFBPacket
.java.io.IOException
public long getSenderSSRC()
Sender SSRC
field of this RTCP
feedback
packet.public long getSourceSSRC()
Source SSRC
field of this RTCP
feedback
packet.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.