fm.liveswitch.CodecStats Class Reference

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...
 
- 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.CodecStats >
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...
 
- Protected Member Functions inherited from fm.liveswitch.BaseStats
 BaseStats ()
 

Detailed Description

Codec stats.

Constructor & Destructor Documentation

◆ CodecStats()

fm.liveswitch.CodecStats.CodecStats ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.CodecStats.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.BaseStats.

◆ fromJson()

static fm.liveswitch.CodecStats fm.liveswitch.CodecStats.fromJson ( String  codecJson)
static

Derializes codec stats from JSON.

Parameters
codecJsonThe codec's stats JSON.

◆ getChannelCount()

int fm.liveswitch.CodecStats.getChannelCount ( )

Gets the channel count.

◆ getClockRate()

int fm.liveswitch.CodecStats.getClockRate ( )

Gets the clock rate.

◆ getCodecType()

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.

◆ getName()

String fm.liveswitch.CodecStats.getName ( )

Gets the name.

◆ getParameters()

String fm.liveswitch.CodecStats.getParameters ( )

Gets the parameters.

◆ getPayloadType()

int fm.liveswitch.CodecStats.getPayloadType ( )

Gets the payload type.

◆ isEquivalent()

boolean fm.liveswitch.CodecStats.isEquivalent ( fm.liveswitch.CodecStats  instance)

Checks if a codec is equivalent to this one.

Parameters
instanceThe codec.

◆ serializeProperties()

void fm.liveswitch.CodecStats.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ toJson() [1/2]

String fm.liveswitch.CodecStats.toJson ( )

Serializes this to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.CodecStats.toJson ( fm.liveswitch.CodecStats  codec)
static

Serializes codec stats to JSON.

Parameters
codecThe codec's stats.