Class RTCPeerConnectionStats
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The RTCPeerConnectionStats dictionary of the WebRTC API provides information about the high level peer connection (RTCPeerConnection).
[ToObject]
public class RTCPeerConnectionStats : RTCStats
- Inheritance
-
RTCPeerConnectionStats
- Inherited Members
Remarks
In particular, it provides the number of unique data channels that have been opened, and the number of opened channels that have been closed.
This allows the current number of open channels to be calculated.
These statistics can be obtained by iterating the RTCStatsReport returned by GetStats(MediaStreamTrack?) until you find a report with the type of peer-connection.
Constructors
RTCPeerConnectionStats()
public RTCPeerConnectionStats()
Fields
DataChannelsClosed
The dataChannelsClosed property of the RTCPeerConnectionStats dictionary indicates the number of unique RTCDataChannel objects that have left the open state during their lifetime.
[Value("dataChannelsClosed")]
public ulong DataChannelsClosed
Field Value
- ulong
A positive integer that indicates the number of unique RTCDataChannel objects that have left the
openstate during their lifetime.
Remarks
A channel will leave the open state if either end of the connection or the underlying transport is closed.
Note that channels that transition to closing or closed without ever being open are not counted in this number.
DataChannelsOpened
The dataChannelsOpened property of the RTCPeerConnectionStats dictionary indicates the number of unique RTCDataChannel objects that have entered the open state during their lifetime.
[Value("dataChannelsOpened")]
public ulong DataChannelsOpened
Field Value
- ulong
A positive integer that indicates the number of unique RTCDataChannel objects that have entered the
openstate during their lifetime.