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 APIThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
onprocessorerror
|
Chrome
Full support 67 |
Edge
Full support 79 |
Firefox
Full support 76 |
IE
No support No |
Opera
? |
Safari
No support No |
WebView Android
Full support 67 |
Chrome Android
Full support 67 |
Firefox Android
Full support 79 |
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
See also
AudioWorkletNode.onprocessorerror by Mozilla Contributors is licensed under CC-BY-SA 2.5.