Hello,
As
previously announced, in M107 the deprecated stats dictionaries, RTCMediaStreamTrackStats and RTCMediaStreamStats, were prefixed with the id "DEPRECATED_".
Now, in M109, these stats objects are being unshipped behind a flag, currently rolled out to 50% Canary. Apps that still depend on these legacy metrics will need to migrate their parsers to obtain the relevant metrics from the
RTCOutboundRtpStreamStats (type: "outbound-rtp") and
RTCInboundRtpStreamStats (type: "inbound-rtp") dictionaries instead.
For receiving and sending singlecast this should be straightforward since generally the same "track" metrics are also available in the RTP stats objects. However for sending simulcast, note that one "outbound-rtp" is produced per simulcast layer. Compare this to legacy "track" stats, which aggregated the metrics from all layers. If the app wants aggregated simulcast metrics, the app will need to sum up the metrics from all the relevant "outbound-rtp" stats objects into a single aggregated stats object.
Currently the unshipping of these metrics only affect Canary (M109+). Stay tuned for further announcements about when we'll advance the "unship deprecated stats" experiment to Beta and Stable channels.
The combination of unshipping legacy metrics and
less codecs stats in M108 means that the RTCStatsReport is a lot slimmer today. Compare the size of the report in a
one-way video-only call in M106 Stable with M109 Canary and you'll notice only 12 stats objects instead of 65, and improvement that scales with meeting size: