For years we've created RTCCodecStats on a per-transceiver basis often resulting in many hundreds of "codec" stats objects with duplicate information. These are now generated per-transport, which means that applications using BUNDLE can see up to a several KB reduction in their RTCStatsReport. In one example
, the number of "codec" objects was reduced from 872 to 43.
Stats IDs are more concise now, e.g. instead of "RTCIceCandidatePair_6cWRqicY_haEcM2xD" it's now "CP6cWRqicY_haEcM2xD". Other IDs have had similar changes.
This is just an FYI - different implementations generate stats IDs differently so please do not depend on any pattern in stats IDs. While the new pattern is predictable, at some point in the future stats IDs will become random and unpredictable according to spec
Lastly, along with RTCMediaStreamTrackStats (previous PSA
), RTCMediaStreamStats are also on track for deprecation. These stats have the "DEPRECATED_" prefix in their stats IDs so signify this.