Public Member Functions | |
fm.liveswitch.StreamDirection | getDirection () |
Gets the direction. More... | |
int | getMaxReceiveBitrate () |
Gets the max receive bitrate. More... | |
int | getMaxSendBitrate () |
Gets the max send bitrate. More... | |
double | getMediaQuality () |
Gets the stream's estimated media quality as the minimum of the sender media quality and the receiver media quality. More... | |
double | getNetworkQuality () |
Gets the stream's estimated network quality as the minimum of the fm.liveswitch.MediaStreamStats#getSenderNetworkQuality and the fm.liveswitch.MediaStreamStats#getReceiverNetworkQuality. More... | |
fm.liveswitch.MediaReceiverStats | getReceiver () |
Gets the first receiver's stats. More... | |
double | getReceiverMediaQuality () |
Gets the receivers' minimum estimated media quality. More... | |
double | getReceiverNetworkQuality () |
Gets the receivers' minimum estimated network quality. More... | |
double | getReceiverNetworkScore () |
Gets the receivers' estimated network score. More... | |
fm.liveswitch.MediaReceiverStats[] | getReceivers () |
Gets the receivers' stats. More... | |
fm.liveswitch.MediaSenderStats | getSender () |
Gets the first sender's stats. More... | |
double | getSenderMediaQuality () |
Gets the senders' minimum estimated media quality. More... | |
double | getSenderNetworkQuality () |
Gets the senders' minimum estimated network quality. More... | |
fm.liveswitch.MediaSenderStats[] | getSenders () |
Gets the senders' stats. More... | |
MediaStreamStats () | |
String | toJson () |
Serializes this to JSON. More... | |
Public Member Functions inherited from fm.liveswitch.StreamStats | |
boolean | getIsHost () |
Gets whether the transport's active candidate pair has a host candidate. More... | |
boolean | getIsReflexive () |
Gets whether the transport's active candidate pair has a reflexive candidate. More... | |
boolean | getIsRelayed () |
Gets whether the transport's active candidate pair has a relayed candidate. More... | |
fm.liveswitch.TransportStats | getTransport () |
Gets the transport's stats. More... | |
fm.liveswitch.StreamType | getType () |
Gets the type. 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... | |
Static Public Member Functions | |
static fm.liveswitch.MediaStreamStats | fromJson (String mediaStreamJson) |
Derializes media stream stats from JSON. More... | |
static fm.liveswitch.MediaStreamStats[] | fromJsonArray (String mediaStreamsJson) |
Derializes an array of media stream stats from JSON. More... | |
static String | toJson (fm.liveswitch.MediaStreamStats mediaStream) |
Serializes media stream stats to JSON. More... | |
static String | toJsonArray (fm.liveswitch.MediaStreamStats[] mediaStreams) |
Serializes an array of media stream stats 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.StreamStats | |
StreamStats () | |
Protected Member Functions inherited from fm.liveswitch.BaseStats | |
BaseStats () | |
Media stream stats.
fm.liveswitch.MediaStreamStats.MediaStreamStats | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.StreamStats.
|
static |
Derializes media stream stats from JSON.
mediaStreamJson | The media stream's stats JSON. |
|
static |
Derializes an array of media stream stats from JSON.
mediaStreamsJson | The media streams' stats JSON. |
fm.liveswitch.StreamDirection fm.liveswitch.MediaStreamStats.getDirection | ( | ) |
Gets the direction.
int fm.liveswitch.MediaStreamStats.getMaxReceiveBitrate | ( | ) |
Gets the max receive bitrate.
int fm.liveswitch.MediaStreamStats.getMaxSendBitrate | ( | ) |
Gets the max send bitrate.
double fm.liveswitch.MediaStreamStats.getMediaQuality | ( | ) |
Gets the stream's estimated media quality as the minimum of the sender media quality and the receiver 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.
double fm.liveswitch.MediaStreamStats.getNetworkQuality | ( | ) |
Gets the stream's estimated network quality as the minimum of the fm.liveswitch.MediaStreamStats#getSenderNetworkQuality and the fm.liveswitch.MediaStreamStats#getReceiverNetworkQuality.
The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.
fm.liveswitch.MediaReceiverStats fm.liveswitch.MediaStreamStats.getReceiver | ( | ) |
Gets the first receiver's stats.
double fm.liveswitch.MediaStreamStats.getReceiverMediaQuality | ( | ) |
Gets the receivers' minimum 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.
double fm.liveswitch.MediaStreamStats.getReceiverNetworkQuality | ( | ) |
Gets the receivers' minimum 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.MediaStreamStats.getReceiverNetworkScore | ( | ) |
Gets the receivers' 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.
fm.liveswitch.MediaReceiverStats [] fm.liveswitch.MediaStreamStats.getReceivers | ( | ) |
Gets the receivers' stats.
fm.liveswitch.MediaSenderStats fm.liveswitch.MediaStreamStats.getSender | ( | ) |
Gets the first sender's stats.
double fm.liveswitch.MediaStreamStats.getSenderMediaQuality | ( | ) |
Gets the senders' minimum 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.
double fm.liveswitch.MediaStreamStats.getSenderNetworkQuality | ( | ) |
Gets the senders' minimum 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.
fm.liveswitch.MediaSenderStats [] fm.liveswitch.MediaStreamStats.getSenders | ( | ) |
Gets the senders' stats.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.StreamStats.
String fm.liveswitch.MediaStreamStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes media stream stats to JSON.
mediaStream | The media stream's stats. |
|
static |
Serializes an array of media stream stats to JSON.
mediaStreams | The media streams' stats. |