fm.liveswitch.ReportBlock Class Reference

An RTCP report block. More...

Public Member Functions

int getCumulativeNumberOfPacketsLost ()
 Gets the cumulative number of packets lost. More...
 
fm.liveswitch.DataBuffer getDataBuffer ()
 Gets the backing data buffer. More...
 
long getDelaySinceLastSenderReport ()
 Gets the delay since last sender report. More...
 
long getExtendedHighestSequenceNumberReceived ()
 Gets the extended highest sequence number received. More...
 
int getFractionLost ()
 Gets the fraction lost according to RFC 1889. More...
 
long getInterarrivalJitter ()
 Gets the interarrival jitter. More...
 
long getLastSenderReportTimestamp ()
 Gets the last sender report timestamp. More...
 
double getPercentLost ()
 Gets the percentage of lost packets. More...
 
long getSynchronizationSource ()
 Gets the synchronization source. More...
 
 ReportBlock ()
 Initializes a new instance of the fm.liveswitch.ReportBlock class. More...
 
 ReportBlock (fm.liveswitch.DataBuffer dataBuffer)
 Initializes a new instance of the fm.liveswitch.ReportBlock class. More...
 
 ReportBlock (int fractionLost, int cumulativeNumberOfPacketsLost, long extendedHighestSequenceNumberReceived, long interarrivalJitter, long lastSenderReportTimestamp, long delaySinceLastSenderReport)
 Initializes a new instance of the fm.liveswitch.ReportBlock class. More...
 
 ReportBlock (long synchronizationSource, int fractionLost, int cumulativeNumberOfPacketsLost, long extendedHighestSequenceNumberReceived, long interarrivalJitter, long lastSenderReportTimestamp, long delaySinceLastSenderReport)
 Initializes a new instance of the fm.liveswitch.ReportBlock class. More...
 
void setCumulativeNumberOfPacketsLost (int value)
 Sets the cumulative number of packets lost. More...
 
void setDataBuffer (fm.liveswitch.DataBuffer value)
 Sets the backing data buffer. More...
 
void setDelaySinceLastSenderReport (long value)
 Sets the delay since last sender report. More...
 
void setExtendedHighestSequenceNumberReceived (long value)
 Sets the extended highest sequence number received. More...
 
void setFractionLost (int value)
 Sets the fraction lost according to RFC 1889. More...
 
void setInterarrivalJitter (long value)
 Sets the interarrival jitter. More...
 
void setLastSenderReportTimestamp (long value)
 Sets the last sender report timestamp. More...
 
void setSynchronizationSource (long value)
 Sets the synchronization source. More...
 
String toString ()
 Returns a string that represents this instance. More...
 

Static Public Member Functions

static int getFixedPayloadLength ()
 Gets the fixed length of a report block. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fm.liveswitch.ControlFrameEntry
 ControlFrameEntry ()
 

Detailed Description

An RTCP report block.

Constructor & Destructor Documentation

◆ ReportBlock() [1/4]

fm.liveswitch.ReportBlock.ReportBlock ( )

Initializes a new instance of the fm.liveswitch.ReportBlock class.

◆ ReportBlock() [2/4]

fm.liveswitch.ReportBlock.ReportBlock ( fm.liveswitch.DataBuffer  dataBuffer)

Initializes a new instance of the fm.liveswitch.ReportBlock class.

Parameters
dataBufferThe data buffer.

◆ ReportBlock() [3/4]

fm.liveswitch.ReportBlock.ReportBlock ( int  fractionLost,
int  cumulativeNumberOfPacketsLost,
long  extendedHighestSequenceNumberReceived,
long  interarrivalJitter,
long  lastSenderReportTimestamp,
long  delaySinceLastSenderReport 
)

Initializes a new instance of the fm.liveswitch.ReportBlock class.

Parameters
fractionLostThe fraction lost.
cumulativeNumberOfPacketsLostThe cumulative number of packets lost.
extendedHighestSequenceNumberReceivedThe extended highest sequence number received.
interarrivalJitterThe interarrival jitter.
lastSenderReportTimestampThe last sender report timestamp.
delaySinceLastSenderReportThe delay since last sender report.

◆ ReportBlock() [4/4]

fm.liveswitch.ReportBlock.ReportBlock ( long  synchronizationSource,
int  fractionLost,
int  cumulativeNumberOfPacketsLost,
long  extendedHighestSequenceNumberReceived,
long  interarrivalJitter,
long  lastSenderReportTimestamp,
long  delaySinceLastSenderReport 
)

Initializes a new instance of the fm.liveswitch.ReportBlock class.

Parameters
synchronizationSourceThe synchronization source.
fractionLostThe fraction lost.
cumulativeNumberOfPacketsLostThe cumulative number of packets lost.
extendedHighestSequenceNumberReceivedThe extended highest sequence number received.
interarrivalJitterThe interarrival jitter.
lastSenderReportTimestampThe last sender report timestamp.
delaySinceLastSenderReportThe delay since last sender report.

Member Function Documentation

◆ getCumulativeNumberOfPacketsLost()

int fm.liveswitch.ReportBlock.getCumulativeNumberOfPacketsLost ( )

Gets the cumulative number of packets lost.

◆ getDataBuffer()

fm.liveswitch.DataBuffer fm.liveswitch.ReportBlock.getDataBuffer ( )

Gets the backing data buffer.

◆ getDelaySinceLastSenderReport()

long fm.liveswitch.ReportBlock.getDelaySinceLastSenderReport ( )

Gets the delay since last sender report.

◆ getExtendedHighestSequenceNumberReceived()

long fm.liveswitch.ReportBlock.getExtendedHighestSequenceNumberReceived ( )

Gets the extended highest sequence number received.

◆ getFixedPayloadLength()

static int fm.liveswitch.ReportBlock.getFixedPayloadLength ( )
static

Gets the fixed length of a report block.

◆ getFractionLost()

int fm.liveswitch.ReportBlock.getFractionLost ( )

Gets the fraction lost according to RFC 1889.

The value has a range of 0 (no packet loss) to 255 (all packets lost).

◆ getInterarrivalJitter()

long fm.liveswitch.ReportBlock.getInterarrivalJitter ( )

Gets the interarrival jitter.

◆ getLastSenderReportTimestamp()

long fm.liveswitch.ReportBlock.getLastSenderReportTimestamp ( )

Gets the last sender report timestamp.

◆ getPercentLost()

double fm.liveswitch.ReportBlock.getPercentLost ( )

Gets the percentage of lost packets.

The value has a range of 0.0 (no packet loss) to 1.0 (all packets lost).

◆ getSynchronizationSource()

long fm.liveswitch.ReportBlock.getSynchronizationSource ( )

Gets the synchronization source.

Reimplemented from fm.liveswitch.ControlFrameEntry.

◆ setCumulativeNumberOfPacketsLost()

void fm.liveswitch.ReportBlock.setCumulativeNumberOfPacketsLost ( int  value)

Sets the cumulative number of packets lost.

◆ setDataBuffer()

void fm.liveswitch.ReportBlock.setDataBuffer ( fm.liveswitch.DataBuffer  value)

Sets the backing data buffer.

◆ setDelaySinceLastSenderReport()

void fm.liveswitch.ReportBlock.setDelaySinceLastSenderReport ( long  value)

Sets the delay since last sender report.

◆ setExtendedHighestSequenceNumberReceived()

void fm.liveswitch.ReportBlock.setExtendedHighestSequenceNumberReceived ( long  value)

Sets the extended highest sequence number received.

◆ setFractionLost()

void fm.liveswitch.ReportBlock.setFractionLost ( int  value)

Sets the fraction lost according to RFC 1889.

The value has a range of 0 (no packet loss) to 255 (all packets lost).

◆ setInterarrivalJitter()

void fm.liveswitch.ReportBlock.setInterarrivalJitter ( long  value)

Sets the interarrival jitter.

◆ setLastSenderReportTimestamp()

void fm.liveswitch.ReportBlock.setLastSenderReportTimestamp ( long  value)

Sets the last sender report timestamp.

◆ setSynchronizationSource()

void fm.liveswitch.ReportBlock.setSynchronizationSource ( long  value)

Sets the synchronization source.

Reimplemented from fm.liveswitch.ControlFrameEntry.

◆ toString()

String fm.liveswitch.ReportBlock.toString ( )

Returns a string that represents this instance.