← Back to release summary

AudioContext.onerror

Category
Multimedia
Type
Chromium catches up
Status
Enabled by default (Chrome 128)
Intent stage
None

Summary

AudioContext creation and audio rendering errors are reported to web applications via a callback assigned to AudioContext.onerror.

Motivation

Currently there is no way for the user's agent to know if their AudioContext has failed either at creation (instantiation of AudioContext) or while rendering. At such failure, the web application silently acts as though audio is working correctly even though it's not. Having AudioContext know of the platform's AudioDestination rendering failure will enable the developers to plan a recovery.

Standards & signals

View on chromestatus.com