public abstract class RTCPReport extends java.lang.Object implements Report
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
feedbackReports |
protected RTCPHeader |
header |
protected Participant |
participant |
protected int |
sdesBytes |
protected java.util.Vector |
sourceDescriptions |
Constructor and Description |
---|
RTCPReport(byte[] data,
int offset,
int length)
Creates a new RTCPReport
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getByeReason()
Returns the reason for the bye
|
java.lang.String |
getCName()
Gets the cName of the source of the report
|
java.util.Vector |
getFeedbackReports()
Returns the feedback reports for this RTCP report.
|
Participant |
getParticipant()
Returns the participant linked with this RTCP report
|
java.util.Vector |
getSourceDescription()
Returns the sources descriptions (SDES) in this RTCP report.
|
long |
getSSRC()
Returns the SSRC announced in this report.
|
boolean |
isByePacket()
Returns true if a bye packet was added to the report
|
protected void |
readBye(byte[] data,
int offset,
int length)
Reads and handles the BYE part of an RTCP report.
|
protected void |
readFeedbackReports(byte[] data,
int offset,
int length)
Reads feedback reports from the data
|
protected void |
readSourceDescription(byte[] data,
int offset,
int length)
Reads the source description from the data
|
protected void |
setParticipant(RTPParticipant participant)
Sets the participant linked with this RTCP report.
|
protected Participant participant
protected RTCPHeader header
protected java.util.Vector feedbackReports
protected java.util.Vector sourceDescriptions
protected int sdesBytes
public RTCPReport(byte[] data, int offset, int length) throws java.io.IOException
data
- The data of the reportoffset
- The offset in the data where the report startslength
- The length of the report in the datajava.io.IOException
- I/O Exceptionprotected void readFeedbackReports(byte[] data, int offset, int length) throws java.io.IOException
data
- The data to read the feedback reports fromoffset
- The offset into the data where the reports startlength
- The length of the datajava.io.IOException
- I/O Exceptionprotected void readSourceDescription(byte[] data, int offset, int length) throws java.io.IOException
data
- The data to read the source description fromoffset
- The offset into the data where the SDES packet startslength
- The length of the datajava.io.IOException
- I/O Exceptionprotected void readBye(byte[] data, int offset, int length) throws java.io.IOException
data
- the raw data in which the packet is containedoffset
- the offset where the BYE startslength
- the length of the reportjava.io.IOException
- I/O Exceptionprotected void setParticipant(RTPParticipant participant)
participant
- the participant identified as linked with this RTCP reportpublic Participant getParticipant()
getParticipant
in interface Report
public long getSSRC()
public java.util.Vector getFeedbackReports()
getFeedbackReports
in interface Report
public java.util.Vector getSourceDescription()
getSourceDescription
in interface Report
public java.lang.String getCName()
public boolean isByePacket()
public java.lang.String getByeReason()