Class RemoteReceiverStats
Remote receiver stats.
Inheritance
Implements
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class RemoteReceiverStats : object, IEquivalent<RemoteReceiverStats>
Properties
CumulativeNumberOfPacketsLost
Gets the cumulative number of packets lost.
Declaration
public int CumulativeNumberOfPacketsLost { get; }
Property Value
Type | Description |
---|---|
System. |
DelaySinceLastSenderReport
Gets the delay since last sender report.
Declaration
public long DelaySinceLastSenderReport { get; }
Property Value
Type | Description |
---|---|
System. |
ExtendedHighestSequenceNumberReceived
Gets the extended highest sequence number received.
Declaration
public long ExtendedHighestSequenceNumberReceived { get; }
Property Value
Type | Description |
---|---|
System. |
FractionLost
Gets the fraction lost according to RFC 1889. The value has a range of 0 (no packet loss) to 255 (all packets lost).
Declaration
public int FractionLost { get; }
Property Value
Type | Description |
---|---|
System. |
InterarrivalJitter
Gets the interarrival jitter.
Declaration
public long InterarrivalJitter { get; }
Property Value
Type | Description |
---|---|
System. |
LastSenderReportTimestamp
Gets the last sender report timestamp.
Declaration
public long LastSenderReportTimestamp { get; }
Property Value
Type | Description |
---|---|
System. |
PercentLost
Gets the percentage of lost packets. The value has a range of 0.0 (no packet loss) to 1.0 (all packets lost).
Declaration
public double PercentLost { get; }
Property Value
Type | Description |
---|---|
System. |
SynchronizationSource
Gets the synchronization source.
Declaration
public long SynchronizationSource { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
FromJson(String)
Derializes remote receiver stats from JSON.
Declaration
public static RemoteReceiverStats FromJson(string remoteReceiverJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
remoteReceiverJson | The remote receiver's stats JSON. |
Returns
Type | Description |
---|---|
Remote |
FromJsonArray(String)
Derializes a remote receiver stats array from JSON.
Declaration
public static RemoteReceiverStats[] FromJsonArray(string remoteReceiversJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
remoteReceiversJson | The remote receivers' stats JSON. |
Returns
Type | Description |
---|---|
Remote |
IsEquivalent(RemoteReceiverStats)
Checks if a remote receiver is equivalent to this one.
Declaration
public bool IsEquivalent(RemoteReceiverStats instance)
Parameters
Type | Name | Description |
---|---|---|
Remote |
instance | The remote receiver. |
Returns
Type | Description |
---|---|
System. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
jsonObject | The JSON object. |
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(RemoteReceiverStats)
Serializes remote receiver stats to JSON.
Declaration
public static string ToJson(RemoteReceiverStats remoteReceiver)
Parameters
Type | Name | Description |
---|---|---|
Remote |
remoteReceiver | The remote receiver's stats. |
Returns
Type | Description |
---|---|
System. |
ToJsonArray(RemoteReceiverStats[])
Serializes a remote receiver stats array to JSON.
Declaration
public static string ToJsonArray(RemoteReceiverStats[] remoteReceivers)
Parameters
Type | Name | Description |
---|---|---|
Remote |
remoteReceivers | The remote receivers' stats. |
Returns
Type | Description |
---|---|
System. |