The GetStats API is async in the JS layer, but (to my understanding) when the call reaches third_party/webrtc code, webrtc asks the APM for stats synchronously. This doesn't play nice with the APM being in the audio process, so we are making an ugly polling mechanism in the renderer so we can serve cached stats. We should instead change webrtc to allow the APM to respond asynchronously.
This is probably complicated?
Comment 1 by hbos@chromium.org
, Aug 29