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 () | |
Media component stats.
|
protected |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.BaseStats.
Reimplemented in fm.liveswitch.MediaSenderStats, and fm.liveswitch.MediaReceiverStats.
fm.liveswitch.CodecStats fm.liveswitch.MediaComponentStats.getCodec | ( | ) |
Gets the codec stats.
long fm.liveswitch.MediaComponentStats.getFirCount | ( | ) |
Gets the FIR count.
long fm.liveswitch.MediaComponentStats.getLrrCount | ( | ) |
Gets the LRR count.
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.
audio | Whether these are audio stats. |
Reimplemented in fm.liveswitch.MediaReceiverStats.
long fm.liveswitch.MediaComponentStats.getNackCount | ( | ) |
Gets the NACK count.
long fm.liveswitch.MediaComponentStats.getPliCount | ( | ) |
Gets the PLI count.
String fm.liveswitch.MediaComponentStats.getRepairedRtpStreamId | ( | ) |
Gets the repaired RTP stream identifier.
String fm.liveswitch.MediaComponentStats.getRtpStreamId | ( | ) |
Gets the RTP stream identifier.
long fm.liveswitch.MediaComponentStats.getSliCount | ( | ) |
Gets the SLI count.
long fm.liveswitch.MediaComponentStats.getSynchronizationSource | ( | ) |
Gets the synchronization source.
fm.liveswitch.MediaTrackStats fm.liveswitch.MediaComponentStats.getTrack | ( | ) |
Gets the track's stats.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.BaseStats.
Reimplemented in fm.liveswitch.MediaSenderStats, and fm.liveswitch.MediaReceiverStats.
void fm.liveswitch.MediaComponentStats.setCodec | ( | fm.liveswitch.CodecStats | value | ) |
Sets the codec stats.
void fm.liveswitch.MediaComponentStats.setFirCount | ( | long | value | ) |
Sets the FIR count.
void fm.liveswitch.MediaComponentStats.setLrrCount | ( | long | value | ) |
Sets the LRR count.
void fm.liveswitch.MediaComponentStats.setNackCount | ( | long | value | ) |
Sets the NACK count.
void fm.liveswitch.MediaComponentStats.setPliCount | ( | long | value | ) |
Sets the PLI count.
void fm.liveswitch.MediaComponentStats.setRepairedRtpStreamId | ( | String | value | ) |
Sets the repaired RTP stream identifier.
void fm.liveswitch.MediaComponentStats.setRtpStreamId | ( | String | value | ) |
Sets the RTP stream identifier.
void fm.liveswitch.MediaComponentStats.setSliCount | ( | long | value | ) |
Sets the SLI count.
void fm.liveswitch.MediaComponentStats.setSynchronizationSource | ( | long | value | ) |
Sets the synchronization source.
void fm.liveswitch.MediaComponentStats.setTrack | ( | fm.liveswitch.MediaTrackStats | value | ) |
Sets the track's stats.