public class RTCPFeedbackMessagePacket extends java.lang.Object implements Payload
Constructor and Description |
---|
RTCPFeedbackMessagePacket(int fmt,
int pt,
long senderSSRC,
long sourceSSRC)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getFeedbackMessageType()
Gets the feedback message type (FMT) of this
RTCPFeedbackMessagePacket.
|
int |
getPayloadType()
Gets the packet type (PT) of this RTCPFeedbackMessagePacket.
|
long |
getSenderSSRC()
Gets the synchronization source identifier (SSRC) of the originator of
this packet.
|
int |
getSequenceNumber()
Gets the (command) sequence number of this Full Intra Request (FIR) RTCP
feedback message as defined by RFC 5104 "Codec Control Messages in
the RTP Audio-Visual Profile with Feedback (AVPF)".
|
long |
getSourceSSRC()
Gets the synchronization source identifier (SSRC) of the media source
that this piece of feedback information is related to.
|
void |
setFeedbackMessageType(int fmt)
Sets the feedback message type (FMT) of this
RTCPFeedbackMessagePacket.
|
void |
setPayloadType(int pt)
Sets the packet type (PT) of this RTCPFeedbackMessagePacket.
|
void |
setSenderSSRC(long senderSSRC)
Sets the synchronization source identifier (SSRC) of the originator of
this packet.
|
void |
setSequenceNumber(int seqNr)
Sets the (command) sequence number of this Full Intra Request (FIR) RTCP
feedback message as defined by RFC 5104 "Codec Control Messages in
the RTP Audio-Visual Profile with Feedback (AVPF)".
|
void |
setSourceSSRC(long sourceSSRC)
Sets the synchronization source identifier (SSRC) of the media source
that this piece of feedback information is related to.
|
static void |
writeSSRC(long ssrc,
byte[] buf,
int off)
Writes a specific synchronization source identifier (SSRC) into a
specific byte array starting at a specific offset.
|
void |
writeTo(javax.media.rtp.OutputDataStream out)
Write the RTCP packet representation of this instance into a specific
OutputDataStream.
|
public RTCPFeedbackMessagePacket(int fmt, int pt, long senderSSRC, long sourceSSRC)
fmt
- feedback message typept
- packet typesenderSSRC
- SSRC of packet sendersourceSSRC
- SSRC of media sourcepublic int getFeedbackMessageType()
public int getPayloadType()
public long getSenderSSRC()
public int getSequenceNumber()
public long getSourceSSRC()
public void setFeedbackMessageType(int fmt)
fmt
- the feedback message type (FMT) to set on this
RTCPFeedbackMessagePacketpublic void setPayloadType(int pt)
pt
- the packet type (PT) to set on this
RTCPFeedbackMessagePacketpublic void setSenderSSRC(long senderSSRC)
senderSSRC
- the synchronization source identifier (SSRC) of the
originator of this packetpublic void setSequenceNumber(int seqNr)
seqNr
- the (command) sequence number to set on this Full Intra
Request (FIR) RTCP feedback messagepublic void setSourceSSRC(long sourceSSRC)
sourceSSRC
- the synchronization source identifier (SSRC) of the
media source that this piece of feedback information is related topublic static void writeSSRC(long ssrc, byte[] buf, int off)
ssrc
- the synchronization source identifier (SSRC) to write into
buf starting at offbuf
- the byte array to write the specified ssrc
into starting at offoff
- the offset in buf at which the writing of
ssrc is to startpublic void writeTo(javax.media.rtp.OutputDataStream out)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.