Codec stats. More...
Public Member Functions | |
CodecStats () | |
int | getChannelCount () |
Gets the channel count. More... | |
int | getClockRate () |
Gets the clock rate. More... | |
fm.liveswitch.CodecType | getCodecType () |
Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode. More... | |
String | getName () |
Gets the name. More... | |
String | getParameters () |
Gets the parameters. More... | |
int | getPayloadType () |
Gets the payload type. More... | |
boolean | isEquivalent (fm.liveswitch.CodecStats instance) |
Checks if a codec is equivalent to this one. More... | |
String | toJson () |
Serializes this to JSON. More... | |
![]() | |
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... | |
![]() | |
abstract boolean | isEquivalent (T instance) |
Checks if an instance is equivalent to this one. More... | |
Static Public Member Functions | |
static fm.liveswitch.CodecStats | fromJson (String codecJson) |
Derializes codec stats from JSON. More... | |
static String | toJson (fm.liveswitch.CodecStats codec) |
Serializes codec 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... | |
![]() | |
BaseStats () | |
Codec stats.
fm.liveswitch.CodecStats.CodecStats | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.BaseStats.
|
static |
Derializes codec stats from JSON.
codecJson | The codec's stats JSON. |
int fm.liveswitch.CodecStats.getChannelCount | ( | ) |
Gets the channel count.
int fm.liveswitch.CodecStats.getClockRate | ( | ) |
Gets the clock rate.
fm.liveswitch.CodecType fm.liveswitch.CodecStats.getCodecType | ( | ) |
Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode.
String fm.liveswitch.CodecStats.getName | ( | ) |
Gets the name.
String fm.liveswitch.CodecStats.getParameters | ( | ) |
Gets the parameters.
int fm.liveswitch.CodecStats.getPayloadType | ( | ) |
Gets the payload type.
boolean fm.liveswitch.CodecStats.isEquivalent | ( | fm.liveswitch.CodecStats | instance | ) |
Checks if a codec is equivalent to this one.
instance | The codec. |
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.BaseStats.
String fm.liveswitch.CodecStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes codec stats to JSON.
codec | The codec's stats. |