public class RTCPExtendedReport
extends net.sf.fmj.media.rtp.RTCPPacket
| Modifier and Type | Class and Description |
|---|---|
static class |
RTCPExtendedReport.ReportBlock
Represents an abstract, base extended report block.
|
static class |
RTCPExtendedReport.VoIPMetricsReportBlock
Implements "VoIP Metrics Report Block" i.e.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
SDP_ATTRIBUTE |
static int |
XR
The packet type (PT) constant 207 which identifies RTCP XR
packets.
|
| Constructor and Description |
|---|
RTCPExtendedReport()
Initializes a new RTCPExtendedReport instance.
|
RTCPExtendedReport(byte[] buf,
int off,
int len)
Initializes a new RTCPExtendedReport instance by
deserializing/reading a binary representation from a byte array.
|
RTCPExtendedReport(DataInputStream datainputstream)
Initializes a new RTCPExtendedReport instance by
deserializing/reading a binary representation from a
DataInputStream.
|
RTCPExtendedReport(int b0,
int pt,
int length,
DataInputStream datainputstream)
Initializes a new RTCPExtendedReport instance by
deserializing/reading a binary representation of part of the packet from
a DataInputStream, and taking the values found in the
first 4 bytes of the binary representation as arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addReportBlock(RTCPExtendedReport.ReportBlock reportBlock)
Adds an extended report block to this extended report.
|
void |
assemble(DataOutputStream dataoutputstream) |
int |
calcLength() |
int |
getReportBlockCount()
Gets the number of the extended report blocks carried by this
RTCPExtendedReport.
|
List<RTCPExtendedReport.ReportBlock> |
getReportBlocks()
Gets a list of the extended report blocks carried by this
RTCPExtendedReport.
|
int |
getSSRC()
Gets the synchronization source identifier (SSRC) of the originator of
this XR packet.
|
long |
getSystemTimeStamp()
Gets the System time in milliseconds at which this
RTCPExtendedReport has been received or sent by the local
endpoint.
|
boolean |
removeReportBlock(RTCPExtendedReport.ReportBlock reportBlock)
Removes an extended report block from this extended report.
|
void |
setSSRC(int ssrc)
Sets the synchronization source identifier (SSRC) of the originator of
this XR packet.
|
void |
setSystemTimeStamp(long systemTimeStamp)
Sets the System time in milliseconds at which this
RTCPExtendedReport has been received or sent by the local
endpoint.
|
String |
toString() |
public static final String SDP_ATTRIBUTE
public static final int XR
public RTCPExtendedReport()
public RTCPExtendedReport(byte[] buf,
int off,
int len)
throws IOException
buf - the binary representation from which the new instance is to be
initializedoff - the offset in buf at which the binary representation
startslen - the number of bytes in buf starting at
off which comprise the binary representationIOException - if an input/output error occurs while
deserializing/reading the new instance from buf or the binary
representation does not parse into an RTCPExtendedReport
instancepublic RTCPExtendedReport(DataInputStream datainputstream) throws IOException
datainputstream - the binary representation from which the new
instance is to be initialized.IOException - if an input/output error occurs while
deserializing/reading the new instance from datainputstream or
the binary representation does not parse into an
RTCPExtendedReport instance.public RTCPExtendedReport(int b0,
int pt,
int length,
DataInputStream datainputstream)
throws IOException
b0 - the first byte of the binary representation.pt - the value of the packet type field.length - the value of the length field.datainputstream - the binary representation from which the new
instance is to be initialized, excluding the first 4 bytes.IOException - if an input/output error occurs while
deserializing/reading the new instance from datainputstream or
the binary representation does not parse into an
RTCPExtendedReport instance.public boolean addReportBlock(RTCPExtendedReport.ReportBlock reportBlock)
reportBlock - the extended report block to add to this extended
reportNullPointerException - if reportBlock is nullpublic void assemble(DataOutputStream dataoutputstream) throws IOException
assemble in class net.sf.fmj.media.rtp.RTCPPacketIOExceptionpublic int calcLength()
calcLength in class net.sf.fmj.media.rtp.RTCPPacketpublic int getReportBlockCount()
public List<RTCPExtendedReport.ReportBlock> getReportBlocks()
public int getSSRC()
public long getSystemTimeStamp()
public boolean removeReportBlock(RTCPExtendedReport.ReportBlock reportBlock)
reportBlock - the extended report block to remove from this extended
reportpublic void setSSRC(int ssrc)
ssrc - the synchronization source identifier (SSRC) of the
originator of this XR packetpublic void setSystemTimeStamp(long systemTimeStamp)
systemTimeStamp - the System time in milliseconds at which
this RTCPExtendedReport has been received or sent by the local
endpointpublic String toString()
toString in class net.sf.fmj.media.rtp.util.PacketCopyright © 2021 jitsi.org. All rights reserved.