PSA: Standard getStats() Migration Guide - Please use the standard getStats() API in M76+

933 views
Skip to first unread message

Henrik Boström

unread,
Jun 24, 2019, 8:00:25 AM6/24/19
to discuss-webrtc
For the past couple of years, two getStats() APIs have been maintained in parallel. Going forward, only the standard API will be maintained.
Now that more stats have been added to the standard getStats() API in M76, it is a good time for applications relying on the legacy API to migrate to the standard API.

The legacy getStats() API is largely undocumented and is not on a path towards cross-browser compatibility; the standard getStats() API on the other hand is, and the key metrics identified as potential blockers for migrating have all been implemented in M76 (along with other metrics that have existed in both APIs for many versions). If your application is relying on a legacy stat that you consider essential or "blocking migration", and it has no standard-equivalent and cannot be derived, please file a bug at https://crbug.com/webrtc.

MIGRATION GUIDE
Please take a look at the guide and consider migrating for a more future-proof, well-documented and cross-browser compatible API.
This document also explains most of the previously undocumented legacy stats and should be a good source of reference.

Reply all
Reply to author
Forward
0 new messages