const audioCtx = new AudioContext();
const stats = audioCtx.playbackStats;
// ...
// Log total duration of underrun events
console.log(stats.underrunDuration);AudioPlaybackStats: underrunDuration property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.