RTCPeerConnectionStats extension type

The RTCPeerConnectionStats dictionary of the WebRTC API provides information about the high level peer connection (RTCPeerConnection).

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 RTCPeerConnection.getStats until you find a report with the type of peer-connection.

on
Implemented types

Constructors

RTCPeerConnectionStats({int dataChannelsOpened, int dataChannelsClosed})
factory

Properties

dataChannelsClosed int
getter/setter pair
dataChannelsOpened int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DOMHighResTimeStamp
getter/setter pairinherited
type RTCStatsType
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited