Class MediaSenderStats
Media sender stats.
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaSenderStats : MediaComponentStats, IEquivalent<MediaSenderStats>
Properties
BytesSent
Gets the number of bytes sent.
Declaration
public long BytesSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
LastRemoteReceiverStats
Gets the last remote receiver stats.
Declaration
public RemoteReceiverStats LastRemoteReceiverStats { get; }
Property Value
Type | Description |
---|---|
RemoteReceiverStats |
NetworkQuality
Gets the sender's estimated network quality.
The value ranges from 0.0 to 1.0, where 0.0 is the lowest quality and 1.0 is the highest quality.
Declaration
public double NetworkQuality { get; }
Property Value
Type | Description |
---|---|
System.Double |
PacketsSent
Gets the number of packets sent.
Declaration
public long PacketsSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
RoundTripTime
Gets the round trip time in milliseconds.
Declaration
public int RoundTripTime { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Source
Gets the source stats.
Declaration
public MediaSourceStats Source { get; }
Property Value
Type | Description |
---|---|
MediaSourceStats |
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)
Derializes media sender stats from JSON.
Declaration
public static MediaSenderStats FromJson(string mediaSenderJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSenderJson | The media sender's stats JSON. |
Returns
Type | Description |
---|---|
MediaSenderStats |
FromJsonArray(String)
Derializes a media sender stats array from JSON.
Declaration
public static MediaSenderStats[] FromJsonArray(string mediaSendersJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaSendersJson | The media senders' stats JSON. |
Returns
Type | Description |
---|---|
MediaSenderStats[] |
IsEquivalent(MediaSenderStats)
Checks if a media sender is equivalent to this one.
Declaration
public bool IsEquivalent(MediaSenderStats instance)
Parameters
Type | Name | Description |
---|---|---|
MediaSenderStats | instance | The media sender. |
Returns
Type | Description |
---|---|
System.Boolean |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(MediaSenderStats)
Serializes media sender stats to JSON.
Declaration
public static string ToJson(MediaSenderStats mediaSender)
Parameters
Type | Name | Description |
---|---|---|
MediaSenderStats | mediaSender | The media sender's stats. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(MediaSenderStats[])
Serializes a media sender stats array to JSON.
Declaration
public static string ToJsonArray(MediaSenderStats[] mediaSenders)
Parameters
Type | Name | Description |
---|---|---|
MediaSenderStats[] | mediaSenders | The media senders' stats. |
Returns
Type | Description |
---|---|
System.String |