← Back to release summary

Removal of WebRTC getStats datachannelIdentifier -1

Category
WebRTC
Type
No developer-visible change
Status
Enabled by default (Chrome 117)
Intent stage
None

Summary

The WebRTC getStats API exposes a dataChannelIdentifier property https://w3c.github.io/webrtc-stats/#dom-rtcdatachannelstats-datachannelidentifier It will no longer provide the value "-1" in cases where statistics are queried before the datachannel connection is established. Instead, the dictionary member will be omitted. This follows the general pattern not to return meaningless information described in https://w3c.github.io/webrtc-stats/#guidelines-for-implementing-stats-objects

Standards & signals

View on chromestatus.com