Legacy RTCPeerConnection.getStats() support has been removed

Published: | Categories: Audio & Video


The implementation of the RTCPeerConnection.prototype.getStats method has been updated to the current spec with Firefox 66. The changes include:

  • The method’s callback support, deprecated since Firefox 53, has been removed in favour of an RTCStatsReport object returned in Promise.
  • The legacy dictionary-like RTCStatsReport interface access, deprecated since Firefox 48, has been removed in favour of the Map-like results.
  • The isRemote property on the RTCStatsReport object, deprecated since Firefox 63, has been removed in favour of the remoteId property.

See the Advancing WebRTC blog for details and examples.