Class TransportStats
Transport stats.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class TransportStats : BaseStats
Properties
ActiveCandidatePair
Gets or sets the active candidate pair's stats.
Declaration
public CandidatePairStats ActiveCandidatePair { get; set; }
Property Value
Type | Description |
---|---|
CandidatePairStats |
BytesReceived
Gets or sets the number of bytes received.
Declaration
public long BytesReceived { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
BytesSent
Gets or sets the number of bytes sent.
Declaration
public long BytesSent { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
CandidatePairs
Gets or sets the candidate pairs' stats.
Declaration
public CandidatePairStats[] CandidatePairs { get; set; }
Property Value
Type | Description |
---|---|
CandidatePairStats[] |
IsHost
Gets whether the active candidate pair has a host candidate.
Declaration
public bool IsHost { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsReflexive
Gets whether the active candidate pair has a reflexive candidate.
Declaration
public bool IsReflexive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRelayed
Gets whether the active candidate pair has a relayed candidate.
Declaration
public bool IsRelayed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LocalCandidates
Gets or sets the local candidates' stats.
Declaration
public CandidateStats[] LocalCandidates { get; set; }
Property Value
Type | Description |
---|---|
CandidateStats[] |
LocalCertificate
Gets or sets the local certificate's stats.
Declaration
public CertificateStats LocalCertificate { get; set; }
Property Value
Type | Description |
---|---|
CertificateStats |
RemoteCandidates
Gets or sets the remote candidates' stats.
Declaration
public CandidateStats[] RemoteCandidates { get; set; }
Property Value
Type | Description |
---|---|
CandidateStats[] |
RemoteCertificate
Gets or sets the remote certificate's stats.
Declaration
public CertificateStats RemoteCertificate { get; set; }
Property Value
Type | Description |
---|---|
CertificateStats |
RtcpTransport
Gets or sets the RTCP transport's stats.
Declaration
public TransportStats RtcpTransport { get; set; }
Property Value
Type | Description |
---|---|
TransportStats |
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 transport stats from JSON.
Declaration
public static TransportStats FromJson(string transportJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | transportJson | The transport's stats JSON. |
Returns
Type | Description |
---|---|
TransportStats |
GetCandidatePair(String)
Gets a candidate pair by its identifier.
Declaration
public CandidatePairStats GetCandidatePair(string candidatePairId)
Parameters
Type | Name | Description |
---|---|---|
System.String | candidatePairId | The candidate pair identifier. |
Returns
Type | Description |
---|---|
CandidatePairStats |
GetLocalCandidate(String)
Gets a local candidate by its identifier.
Declaration
public CandidateStats GetLocalCandidate(string candidateId)
Parameters
Type | Name | Description |
---|---|---|
System.String | candidateId | The candidate identifier. |
Returns
Type | Description |
---|---|
CandidateStats |
GetRemoteCandidate(String)
Gets a remote candidate by its identifier.
Declaration
public CandidateStats GetRemoteCandidate(string candidateId)
Parameters
Type | Name | Description |
---|---|---|
System.String | candidateId | The candidate identifier. |
Returns
Type | Description |
---|---|
CandidateStats |
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(TransportStats)
Serializes transport stats to JSON.
Declaration
public static string ToJson(TransportStats transport)
Parameters
Type | Name | Description |
---|---|---|
TransportStats | transport | The transport's stats. |
Returns
Type | Description |
---|---|
System.String |