Releases: peermetrics/webrtc-stats
Add new addConnection method
We've added a new method named addConnection
that will replace addPeer
(which is deprecated now).
The big problem with addPeer
was that you could only listen to one single RTCPeerConnection
per peer.
With addConnection
you can add multiple connections for the same peer.
We've also added a new method removeConnection
that will stop listening for events on a specific connection.
removePeer
is still present and will remove all listeners for all connections.
- Added a new method addConnection that will replace addPeer ff096c4
v4.0.0
The biggest change from v3
is for the data object that comes on the stats
event.
Previously, some args from remote-inbound-rtp
were being added to the data.audio.outbound[]
object which might have created some confusion. With v4
that data will go into data.remote.audio.inbound[]
.
Also, the remote
constructor argument has changed default value from false
to true
v3.1.1
v3.1.0
v3.0.0
- Changed the structure of the
stats
event. It will now have anincoming
,outgoing
attributes that will contain a list of incoming/outgoing tracks - Added the
remote
option which helps capture stats from the other POV of a peer connection - Added option to stop listening for event on a peer
- More typescript
- Added a logging module
- Bug fixes