Class RTCStatsReport
Represents a report containing multiple RTCStats objects.
Implements
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public class RTCStatsReport : IDisposable
Properties
Stats
Returns all stats objects in this report.
Declaration
public IDictionary<string, RTCStats> Stats { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, RTCStats> |
Methods
Dispose()
Releases resources held by this report.
Declaration
public void Dispose()
~RTCStatsReport()
Finalizer to ensure resources are released.
Declaration
protected ~RTCStatsReport()
Get(string)
Retrieves a stats object by its identifier.
Declaration
public RTCStats Get(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Stats identifier. |
Returns
Type | Description |
---|---|
RTCStats | The corresponding RTCStats object. |
TryGetValue(string, out RTCStats)
Attempts to get a stats object by its identifier.
Declaration
public bool TryGetValue(string id, out RTCStats stats)
Parameters
Type | Name | Description |
---|---|---|
string | id | Stats identifier. |
RTCStats | stats | Output parameter for the stats object. |
Returns
Type | Description |
---|---|
bool | True if found, otherwise false. |