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