fm.liveswitch.MediaComponentStats Class Referenceabstract

Media component stats. More...

Public Member Functions

fm.liveswitch.CodecStats getCodec ()
 Gets the codec stats. More...
 
long getFirCount ()
 Gets the FIR count. More...
 
long getLrrCount ()
 Gets the LRR count. More...
 
double getMediaQuality (boolean audio)
 Gets the component's estimated media quality. More...
 
long getNackCount ()
 Gets the NACK count. More...
 
long getPliCount ()
 Gets the PLI count. More...
 
String getRepairedRtpStreamId ()
 Gets the repaired RTP stream identifier. More...
 
String getRtpStreamId ()
 Gets the RTP stream identifier. More...
 
long getSliCount ()
 Gets the SLI count. More...
 
long getSynchronizationSource ()
 Gets the synchronization source. More...
 
fm.liveswitch.MediaTrackStats getTrack ()
 Gets the track's stats. More...
 
void setCodec (fm.liveswitch.CodecStats value)
 Sets the codec stats. More...
 
void setFirCount (long value)
 Sets the FIR count. More...
 
void setLrrCount (long value)
 Sets the LRR count. More...
 
void setNackCount (long value)
 Sets the NACK count. More...
 
void setPliCount (long value)
 Sets the PLI count. More...
 
void setRepairedRtpStreamId (String value)
 Sets the repaired RTP stream identifier. More...
 
void setRtpStreamId (String value)
 Sets the RTP stream identifier. More...
 
void setSliCount (long value)
 Sets the SLI count. More...
 
void setSynchronizationSource (long value)
 Sets the synchronization source. More...
 
void setTrack (fm.liveswitch.MediaTrackStats value)
 Sets the track's stats. More...
 
- Public Member Functions inherited from fm.liveswitch.BaseStats
String getId ()
 Gets the identifier of the object generating these stats. More...
 
java.util.Date getTimestamp ()
 Gets the timestamp when these stats were generated. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
 MediaComponentStats ()
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 
- Protected Member Functions inherited from fm.liveswitch.BaseStats
 BaseStats ()
 

Detailed Description

Media component stats.

Constructor & Destructor Documentation

◆ MediaComponentStats()

fm.liveswitch.MediaComponentStats.MediaComponentStats ( )
protected

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.MediaComponentStats.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.BaseStats.

Reimplemented in fm.liveswitch.MediaSenderStats, and fm.liveswitch.MediaReceiverStats.

◆ getCodec()

fm.liveswitch.CodecStats fm.liveswitch.MediaComponentStats.getCodec ( )

Gets the codec stats.

◆ getFirCount()

long fm.liveswitch.MediaComponentStats.getFirCount ( )

Gets the FIR count.

◆ getLrrCount()

long fm.liveswitch.MediaComponentStats.getLrrCount ( )

Gets the LRR count.

◆ getMediaQuality()

double fm.liveswitch.MediaComponentStats.getMediaQuality ( boolean  audio)

Gets the component's estimated media quality.


The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.

Parameters
audioWhether these are audio stats.

Reimplemented in fm.liveswitch.MediaReceiverStats.

◆ getNackCount()

long fm.liveswitch.MediaComponentStats.getNackCount ( )

Gets the NACK count.

◆ getPliCount()

long fm.liveswitch.MediaComponentStats.getPliCount ( )

Gets the PLI count.

◆ getRepairedRtpStreamId()

String fm.liveswitch.MediaComponentStats.getRepairedRtpStreamId ( )

Gets the repaired RTP stream identifier.

◆ getRtpStreamId()

String fm.liveswitch.MediaComponentStats.getRtpStreamId ( )

Gets the RTP stream identifier.

◆ getSliCount()

long fm.liveswitch.MediaComponentStats.getSliCount ( )

Gets the SLI count.

◆ getSynchronizationSource()

long fm.liveswitch.MediaComponentStats.getSynchronizationSource ( )

Gets the synchronization source.

◆ getTrack()

fm.liveswitch.MediaTrackStats fm.liveswitch.MediaComponentStats.getTrack ( )

Gets the track's stats.

◆ serializeProperties()

void fm.liveswitch.MediaComponentStats.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

Reimplemented in fm.liveswitch.MediaSenderStats, and fm.liveswitch.MediaReceiverStats.

◆ setCodec()

void fm.liveswitch.MediaComponentStats.setCodec ( fm.liveswitch.CodecStats  value)

Sets the codec stats.

◆ setFirCount()

void fm.liveswitch.MediaComponentStats.setFirCount ( long  value)

Sets the FIR count.

◆ setLrrCount()

void fm.liveswitch.MediaComponentStats.setLrrCount ( long  value)

Sets the LRR count.

◆ setNackCount()

void fm.liveswitch.MediaComponentStats.setNackCount ( long  value)

Sets the NACK count.

◆ setPliCount()

void fm.liveswitch.MediaComponentStats.setPliCount ( long  value)

Sets the PLI count.

◆ setRepairedRtpStreamId()

void fm.liveswitch.MediaComponentStats.setRepairedRtpStreamId ( String  value)

Sets the repaired RTP stream identifier.

◆ setRtpStreamId()

void fm.liveswitch.MediaComponentStats.setRtpStreamId ( String  value)

Sets the RTP stream identifier.

◆ setSliCount()

void fm.liveswitch.MediaComponentStats.setSliCount ( long  value)

Sets the SLI count.

◆ setSynchronizationSource()

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

Sets the synchronization source.

◆ setTrack()

void fm.liveswitch.MediaComponentStats.setTrack ( fm.liveswitch.MediaTrackStats  value)

Sets the track's stats.