Public Member Functions | |
long | getBytesReceived () |
Gets the number of bytes received. More... | |
int | getJitter () |
Gets the jitter in milliseconds. More... | |
double | getMediaQuality (boolean audio) |
Gets the receiver's estimated media quality. More... | |
double | getNetworkQuality () |
Gets the receiver's estimated network quality. More... | |
double | getNetworkScore () |
Gets the receiver's estimated network score. More... | |
long | getPacketsDiscarded () |
Gets the number of packets discarded. More... | |
long | getPacketsDuplicated () |
Gets the number of packets duplicated. More... | |
long | getPacketsLost () |
Gets the number of packets lost. More... | |
long | getPacketsReceived () |
Gets the number of packets received. More... | |
long | getPacketsRepaired () |
Gets the number of packets repaired. More... | |
int | getRoundTripTime () |
Gets the round trip time in milliseconds. More... | |
fm.liveswitch.MediaSinkStats | getSink () |
Gets the sink stats. More... | |
boolean | isEquivalent (fm.liveswitch.MediaReceiverStats instance) |
Checks if a media receiver is equivalent to this one. More... | |
MediaReceiverStats () | |
String | toJson () |
Serializes this to JSON. More... | |
Public Member Functions inherited from fm.liveswitch.MediaComponentStats | |
fm.liveswitch.CodecStats | getCodec () |
Gets the codec stats. More... | |
long | getFirCount () |
Gets the FIR count. More... | |
long | getLrrCount () |
Gets the LRR count. 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... | |
Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.MediaReceiverStats > | |
abstract boolean | isEquivalent (T instance) |
Checks if an instance is equivalent to this one. More... | |
Static Public Member Functions | |
static fm.liveswitch.MediaReceiverStats | fromJson (String mediaReceiverJson) |
Derializes media receiver stats from JSON. More... | |
static fm.liveswitch.MediaReceiverStats[] | fromJsonArray (String mediaReceiversJson) |
Derializes media receiver stats array from JSON. More... | |
static String | toJson (fm.liveswitch.MediaReceiverStats mediaReceiver) |
Serializes media receiver stats to JSON. More... | |
static String | toJsonArray (fm.liveswitch.MediaReceiverStats[] mediaReceivers) |
Serializes media receiver stats array to JSON. More... | |
Protected Member Functions | |
void | deserializeProperties (String key, String valueJson) |
Deserializes the properties. More... | |
void | serializeProperties (java.util.HashMap< String, String > jsonObject) |
Serializes the properties. More... | |
Protected Member Functions inherited from fm.liveswitch.MediaComponentStats | |
MediaComponentStats () | |
Protected Member Functions inherited from fm.liveswitch.BaseStats | |
BaseStats () | |
Media receiver stats.
fm.liveswitch.MediaReceiverStats.MediaReceiverStats | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.MediaComponentStats.
|
static |
Derializes media receiver stats from JSON.
mediaReceiverJson | The media receiver's stats JSON. |
|
static |
Derializes media receiver stats array from JSON.
mediaReceiversJson | The media receivers' stats JSON. |
long fm.liveswitch.MediaReceiverStats.getBytesReceived | ( | ) |
Gets the number of bytes received.
int fm.liveswitch.MediaReceiverStats.getJitter | ( | ) |
Gets the jitter in milliseconds.
double fm.liveswitch.MediaReceiverStats.getMediaQuality | ( | boolean | audio | ) |
Gets the receiver'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 from fm.liveswitch.MediaComponentStats.
double fm.liveswitch.MediaReceiverStats.getNetworkQuality | ( | ) |
Gets the receiver's estimated network quality.
The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.
double fm.liveswitch.MediaReceiverStats.getNetworkScore | ( | ) |
Gets the receiver's estimated network score.
The value ranges from 1.0 to 5.0, where 1.0 is the lowest score and 5.0 is the highest score.
long fm.liveswitch.MediaReceiverStats.getPacketsDiscarded | ( | ) |
Gets the number of packets discarded.
long fm.liveswitch.MediaReceiverStats.getPacketsDuplicated | ( | ) |
Gets the number of packets duplicated.
long fm.liveswitch.MediaReceiverStats.getPacketsLost | ( | ) |
Gets the number of packets lost.
long fm.liveswitch.MediaReceiverStats.getPacketsReceived | ( | ) |
Gets the number of packets received.
long fm.liveswitch.MediaReceiverStats.getPacketsRepaired | ( | ) |
Gets the number of packets repaired.
int fm.liveswitch.MediaReceiverStats.getRoundTripTime | ( | ) |
Gets the round trip time in milliseconds.
fm.liveswitch.MediaSinkStats fm.liveswitch.MediaReceiverStats.getSink | ( | ) |
Gets the sink stats.
boolean fm.liveswitch.MediaReceiverStats.isEquivalent | ( | fm.liveswitch.MediaReceiverStats | instance | ) |
Checks if a media receiver is equivalent to this one.
instance | The media receiver. |
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.MediaComponentStats.
String fm.liveswitch.MediaReceiverStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes media receiver stats to JSON.
mediaReceiver | The media receiver's stats. |
|
static |
Serializes media receiver stats array to JSON.
mediaReceivers | The media receivers' stats. |