AudioWorkletNode.onprocessorerror

The onprocessorerror property of the AudioWorkletNode interface defines an event handler function to be called when the processorerror event fires. This occurs when the underlying AudioWorkletProcessor behind the node throws an exception in its constructor, the process method, or any user-defined class method.

Once an exception is thrown, the processor (and thus the node) will output silence throughout its lifetime.

Syntax

audioWorkletNode.onprocessorerror = function() { ... };

Examples

// FILL IN EXAMPLE SNIPPET

Specifications

Specification Status Comment
Web Audio API
The definition of 'onprocessorerror' in that specification.
Working Draft

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onprocessorerrorChrome Full support 66Edge Full support ≤79Firefox Full support 76IE No support NoOpera ? Safari ? WebView Android Full support 66Chrome Android Full support 66Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android Full support 9.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also