Class BitrateRequest
A bitrate request.
Inheritance
System.Object
BitrateRequest
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class BitrateRequest : object
Constructors
BitrateRequest()
Initializes a new instance of the Bitrate
Declaration
public BitrateRequest()
Properties
Bitrate
Gets or sets the bitrate (in kbps).
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. |
SenderSynchronizationSource
Gets or sets the sender synchronization source.
Declaration
public long SenderSynchronizationSource { 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 BitrateRequest FromJson(string bitrateRequestJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
bitrateRequestJson | The instance in JSON format. |
Returns
Type | Description |
---|---|
Bitrate |
The instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static BitrateRequest[] FromJsonArray(string bitrateRequestsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
bitrateRequestsJson | 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 |
---|---|---|
Dictionary<System. |
jsonObject | The JSON target. |
ToJson()
Serializes this instance to JSON.
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(BitrateRequest)
Serializes an instance to JSON.
Declaration
public static string ToJson(BitrateRequest bitrateRequest)
Parameters
Type | Name | Description |
---|---|---|
Bitrate |
bitrateRequest | The instance. |
Returns
Type | Description |
---|---|
System. |
The instance in JSON format. |
ToJsonArray(BitrateRequest[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(BitrateRequest[] bitrateRequests)
Parameters
Type | Name | Description |
---|---|---|
Bitrate |
bitrateRequests | The array. |
Returns
Type | Description |
---|---|
System. |
The array in JSON format. |