Class MediaComponentStats
Media component stats.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class MediaComponentStats : BaseStats
Properties
Codec
Gets or sets the codec stats.
Declaration
public CodecStats Codec { get; set; }
Property Value
Type | Description |
---|---|
CodecStats |
FirCount
Gets or sets the FIR count.
Declaration
public long FirCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
LrrCount
Gets or sets the LRR count.
Declaration
public long LrrCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
NackCount
Gets or sets the NACK count.
Declaration
public long NackCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
PliCount
Gets or sets the PLI count.
Declaration
public long PliCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
RepairedRtpStreamId
Gets or sets the repaired RTP stream identifier.
Declaration
public string RepairedRtpStreamId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RtpStreamId
Gets or sets the RTP stream identifier.
Declaration
public string RtpStreamId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SliCount
Gets or sets the SLI count.
Declaration
public long SliCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
SynchronizationSource
Gets or sets the synchronization source.
Declaration
public long SynchronizationSource { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Track
Gets or sets the track's stats.
Declaration
public MediaTrackStats Track { get; set; }
Property Value
Type | Description |
---|---|
MediaTrackStats |
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
GetMediaQuality(Boolean)
Gets the component's estimated media 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 virtual double GetMediaQuality(bool audio)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | audio | Whether these are audio stats. |
Returns
Type | Description |
---|---|
System.Double |
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. |