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.


OfflineAudioContext.resume().then(function() { ... });




A Promise resolving to void.


The promise is rejected when the following exception is encountered.

  • InvalidStateError  if the context is not currently suspended or the rendering has not started. 


Specification Status Comment
Web Audio API
The definition of 'resume()' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 49Edge Full support YesFirefox No support NoIE No support NoOpera Full support 36Safari No support NoWebView Android Full support 49Chrome Android Full support 49Edge Mobile Full support YesFirefox Android No support NoOpera Android Full support 36Safari iOS No support NoSamsung Internet Android Full support 5.0


Full support  
Full support
No support  
No support

Document Tags and Contributors

Contributors to this page: fscholz, PushpitaPikuDey, jpmedley
Last updated by: fscholz,