The resume() method of the OfflineAudioContext interface resumes the progression of time in an audio context that has been suspended. The promise resolves immediately because the OfflineAudioContext does not require the audio hardware. If the context is not currently suspended or the rendering has not started, the promise is rejected with InvalidStateError.
Syntax
OfflineAudioContext.resume().then(function() { ... });
Parameters
None.
Returns
A Promise resolving to void.
Exceptions
The promise is rejected when the following exception is encountered.
InvalidStateErrorif the context is not currently suspended or the rendering has not started.
Specifications
| Specification | Status | Comment |
| Web Audio APIThe definition of 'resume()' in that specification. | Working Draft | Initial definition. |
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
resume
|
Chrome
Full support 49 |
Edge
Full support ≤18 |
Firefox
No support No |
IE
No support No |
Opera
Full support 36 |
Safari
No support No |
WebView Android
Full support 49 |
Chrome Android
Full support 49 |
Firefox Android
No support No |
Opera Android
Full support 36 |
Safari iOS
No support No |
Samsung Internet Android
Full support 5.0 |
Legend
- Full support
- Full support
- No support
- No support
OfflineAudioContext.resume() by Mozilla Contributors is licensed under CC-BY-SA 2.5.