Class CodecStats
Codec stats.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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.Int32 |
ClockRate
Gets the clock rate.
Declaration
public int ClockRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
---|---|
CodecType |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Parameters
Gets the parameters.
Declaration
public string Parameters { get; }
Property Value
Type | Description |
---|---|
System.String |
PayloadType
Gets the payload type.
Declaration
public int PayloadType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | 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.String | codecJson | The codec's stats JSON. |
Returns
Type | Description |
---|---|
CodecStats |
IsEquivalent(CodecStats)
Checks if a codec is equivalent to this one.
Declaration
public bool IsEquivalent(CodecStats instance)
Parameters
Type | Name | Description |
---|---|---|
CodecStats | instance | The codec. |
Returns
Type | Description |
---|---|
System.Boolean |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(CodecStats)
Serializes codec stats to JSON.
Declaration
public static string ToJson(CodecStats codec)
Parameters
Type | Name | Description |
---|---|---|
CodecStats | codec | The codec's stats. |
Returns
Type | Description |
---|---|
System.String |