Class RTCStats
Base class for all RTC statistics objects.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public class RTCStats
Properties
Dict
Returns a dictionary of all stats members and their values.
Declaration
public IDictionary<string, object> Dict { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
Id
Returns the unique identifier for this stats entry.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
this timestamp is utc epoch time micro seconds.
Declaration
public long Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| long |
Type
Gets the type of this statistics object.
Declaration
public RTCStatsType Type { get; }
Property Value
| Type | Description |
|---|---|
| RTCStatsType |
UtcTimeStamp
Converts the timestamp to a UTC DateTime value.
Declaration
public DateTime UtcTimeStamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
ToJson()
Serializes the stats object to a JSON string.
Declaration
public string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON representation of the stats. |