Class BitrateNotification
A bitrate notification.
Inheritance
System.Object
BitrateNotification
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 BitrateNotification
Constructors
BitrateNotification()
Initializes a new instance of the Bitrate
Declaration
public BitrateNotification()
Properties
Bitrate
Gets or sets the bitrate.
Declaration
public int Bitrate { get; set; }
Property Value
Type | Description |
---|---|
System. |
MediaDescriptionId
Gets or sets the media description ID.
Declaration
public string MediaDescriptionId { get; set; }
Property Value
Type | Description |
---|---|
System. |
RtpStreamId
Gets or sets the RTP stream ID.
Declaration
public string RtpStreamId { get; set; }
Property Value
Type | Description |
---|---|
System. |
SynchronizationSource
Gets or sets the synchronization source.
Declaration
public long SynchronizationSource { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperty(String, String)
Deserializes a property from JSON.
Declaration
protected virtual void DeserializeProperty(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The property key. |
System. |
valueJson | The property value in JSON format. |
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static BitrateNotification FromJson(string bitrateNotificationJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
bitrateNotificationJson | The instance in JSON format. |
Returns
Type | Description |
---|---|
Bitrate |
The instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static BitrateNotification[] FromJsonArray(string bitrateNotificationsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
bitrateNotificationsJson | The array in JSON format. |
Returns
Type | Description |
---|---|
Bitrate |
The array. |
SerializeProperties(Dictionary<String, String>)
Serializes properties to JSON.
Declaration
protected virtual void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System. |
jsonObject | The JSON target. |
ToJson()
Serializes this instance to JSON.
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(BitrateNotification)
Serializes an instance to JSON.
Declaration
public static string ToJson(BitrateNotification bitrateNotification)
Parameters
Type | Name | Description |
---|---|---|
Bitrate |
bitrateNotification | The instance. |
Returns
Type | Description |
---|---|
System. |
The instance in JSON format. |
ToJsonArray(BitrateNotification[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(BitrateNotification[] bitrateNotifications)
Parameters
Type | Name | Description |
---|---|---|
Bitrate |
bitrateNotifications | The array. |
Returns
Type | Description |
---|---|
System. |
The array in JSON format. |