Public Member Functions | |
long | getBytesSent () |
Gets the number of bytes sent. More... | |
fm.liveswitch.RemoteReceiverStats | getLastRemoteReceiverStats () |
Gets the last remote receiver stats. More... | |
double | getNetworkQuality () |
Gets the sender's estimated network quality. More... | |
long | getPacketsSent () |
Gets the number of packets sent. More... | |
int | getRoundTripTime () |
Gets the round trip time in milliseconds. More... | |
fm.liveswitch.MediaSourceStats | getSource () |
Gets the source stats. More... | |
boolean | isEquivalent (fm.liveswitch.MediaSenderStats instance) |
Checks if a media sender is equivalent to this one. More... | |
MediaSenderStats () | |
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... | |
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... | |
Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.MediaSenderStats > | |
abstract boolean | isEquivalent (T instance) |
Checks if an instance is equivalent to this one. More... | |
Static Public Member Functions | |
static fm.liveswitch.MediaSenderStats | fromJson (String mediaSenderJson) |
Derializes media sender stats from JSON. More... | |
static fm.liveswitch.MediaSenderStats[] | fromJsonArray (String mediaSendersJson) |
Derializes a media sender stats array from JSON. More... | |
static String | toJson (fm.liveswitch.MediaSenderStats mediaSender) |
Serializes media sender stats to JSON. More... | |
static String | toJsonArray (fm.liveswitch.MediaSenderStats[] mediaSenders) |
Serializes a media sender 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 sender stats.
fm.liveswitch.MediaSenderStats.MediaSenderStats | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.MediaComponentStats.
|
static |
Derializes media sender stats from JSON.
mediaSenderJson | The media sender's stats JSON. |
|
static |
Derializes a media sender stats array from JSON.
mediaSendersJson | The media senders' stats JSON. |
long fm.liveswitch.MediaSenderStats.getBytesSent | ( | ) |
Gets the number of bytes sent.
fm.liveswitch.RemoteReceiverStats fm.liveswitch.MediaSenderStats.getLastRemoteReceiverStats | ( | ) |
Gets the last remote receiver stats.
double fm.liveswitch.MediaSenderStats.getNetworkQuality | ( | ) |
Gets the sender'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.
long fm.liveswitch.MediaSenderStats.getPacketsSent | ( | ) |
Gets the number of packets sent.
int fm.liveswitch.MediaSenderStats.getRoundTripTime | ( | ) |
Gets the round trip time in milliseconds.
fm.liveswitch.MediaSourceStats fm.liveswitch.MediaSenderStats.getSource | ( | ) |
Gets the source stats.
boolean fm.liveswitch.MediaSenderStats.isEquivalent | ( | fm.liveswitch.MediaSenderStats | instance | ) |
Checks if a media sender is equivalent to this one.
instance | The media sender. |
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.MediaComponentStats.
String fm.liveswitch.MediaSenderStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes media sender stats to JSON.
mediaSender | The media sender's stats. |
|
static |
Serializes a media sender stats array to JSON.
mediaSenders | The media senders' stats. |