Thanks for your feedback! We updated the
explainer to address your questions about why the current APIs are insufficient and what we need this API for.
As for correlation between audio and video glitches we can address it here first and add it to the explainer if necessary:
If audio glitches occur due to high CPU load, they may be correlated with video glitches/frame drops. The closest existing thing to a uniform set of properties for audio and video are the stats for
audio and
video glitches in MediaStreamTrack. However, these stats track glitches originating between the source and the point at which they're measured in the MediaStreamTrack. For audio, this means that they're useful for capture (they can measure glitches from the microphone to the track) but not for playout (they cannot measure glitches from the track to the speaker). Because MediaStreams do not know where the media will end up (which might even be several different places), it's hard to define a stats API that measures glitches from audio originating from the MediaStreamTrack.
Unlike audio MediaStreamTracks, WebAudio playout is completely separate from video and does not necessarily interface with MediaStreams, so it makes sense for it to have its own audio-specific API.
Best,
Fredrik