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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
onprocessorerror | Chrome Full support 66 | Edge Full support 79 | Firefox Full support 76 | IE No support No | Opera ? | Safari No support No | WebView Android Full support 66 | Chrome Android Full support 66 | Firefox Android No support No | Opera Android ? | Safari iOS No support No | Samsung Internet Android Full support 9.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown