Class CodecInfo
Codec information.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CodecInfo : Info
Properties
ChannelCount
Gets or sets the codec channel count.
Declaration
public int? ChannelCount { get; set; }
Property Value
Type | Description |
---|---|
System. |
ClockRate
Gets or sets the codec clock rate.
Declaration
public int? ClockRate { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets or sets the codec name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Parameters
Gets or sets the codec parameters.
Declaration
public string Parameters { get; set; }
Property Value
Type | Description |
---|---|
System. |
PayloadType
Gets or sets the codec payload type.
Declaration
public int? PayloadType { get; set; }
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)
Deserializes an instance from JSON.
Declaration
public static CodecInfo FromJson(string codecInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
codecInfoJson | The serialized JSON. |
Returns
Type | Description |
---|---|
Codec |
The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static CodecInfo[] FromJsonArray(string codecInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
codecInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
Codec |
The deserialized array. |
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 instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(CodecInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(CodecInfo codecInfo)
Parameters
Type | Name | Description |
---|---|---|
Codec |
codecInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |
ToJsonArray(CodecInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(CodecInfo[] codecInfos)
Parameters
Type | Name | Description |
---|---|---|
Codec |
codecInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |