Class CodecStats
Codec stats.
Implements
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CodecStats : BaseStats, IEquivalent<CodecStats>
Properties
ChannelCount
Gets the channel count.
Declaration
public int ChannelCount { get; }
Property Value
Type | Description |
---|---|
System. |
ClockRate
Gets the clock rate.
Declaration
public int ClockRate { get; }
Property Value
Type | Description |
---|---|
System. |
CodecType
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.
Declaration
public CodecType CodecType { get; }
Property Value
Type | Description |
---|---|
Codec |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
Parameters
Gets the parameters.
Declaration
public string Parameters { get; }
Property Value
Type | Description |
---|---|
System. |
PayloadType
Gets the payload type.
Declaration
public int PayloadType { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
Overrides
FromJson(String)
Derializes codec stats from JSON.
Declaration
public static CodecStats FromJson(string codecJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
codecJson | The codec's stats JSON. |
Returns
Type | Description |
---|---|
Codec |
IsEquivalent(CodecStats)
Checks if a codec is equivalent to this one.
Declaration
public bool IsEquivalent(CodecStats instance)
Parameters
Type | Name | Description |
---|---|---|
Codec |
instance | The codec. |
Returns
Type | Description |
---|---|
System. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(CodecStats)
Serializes codec stats to JSON.
Declaration
public static string ToJson(CodecStats codec)
Parameters
Type | Name | Description |
---|---|---|
Codec |
codec | The codec's stats. |
Returns
Type | Description |
---|---|
System. |