Web/API/OfflineAudioContext/resume

From Get docs

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.

  • InvalidStateError  if 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

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
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