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
BCD tables only load in the browser