This feature is not Baseline because it does not work in some of the most widely-used browsers.
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.
resume()
None.
A Promise resolving to undefined.
The promise is rejected when an exception is encountered.
InvalidStateError DOMException
Returned if the context is not currently suspended or the rendering has not started.
| Specification |
|---|
| Web Audio API> # dom-offlineaudiocontext-resume> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
resume |
41 | 14 | 28 | 9 | 41 | 28 | 9 | 4.0 | 41 | 9 | ||
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/resume