Skip to content

Releases: peermetrics/webrtc-stats

Add new addConnection method

12 Jan 15:03
Compare
Choose a tag to compare

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

28 Apr 11:53
Compare
Choose a tag to compare

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

31 Mar 19:31
Compare
Choose a tag to compare
  • Fixed problem with bundlers like webpack

v3.1.0

28 Mar 18:12
Compare
Choose a tag to compare

Added new check to detect a closed connection faster

v3.0.0

17 Mar 10:51
Compare
Choose a tag to compare
  • Changed the structure of the stats event. It will now have an incoming, 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

v2.2.3...v3.0.0

Clean up stats interval when there's nothing to monitor

08 May 12:05
Compare
Choose a tag to compare
  • Merge pull request #3 from alexkonst/bugfix/drop-interval-id 2c061fa
  • Drop interval id after clearing dd03edd
  • Update README.md 64eb3d7

v2.2.2...v2.2.3

v2.2.0

22 Mar 15:29
Compare
Choose a tag to compare
  • Added timestamps to timeline events

v2.1.0

22 Mar 15:10
Compare
Choose a tag to compare
  • Added types for addPeer and getTimeline

v2.0.0

22 Mar 14:23
Compare
Choose a tag to compare

Changelog

  • added Typescript
  • added babel build step
  • changed addPeer to return a promise
  • removed options to wrap RTCPeerConnection methods
  • removed options to wrap legacy getUserMedia methods
  • added connection event tag, which replaces ice/sdp

v1.0.6

12 Sep 15:25
Compare
Choose a tag to compare

v1.0.5...v1.0.6