W3cubDocs

/DOM

OfflineAudioContext.resume

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 API
The definition of 'resume()' in that specification.
Working Draft Initial definition.

Browser compatibility

Feature Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 49 Yes No No 36 No
Feature Android webview Chrome for Android Edge mobile Firefox for Android IE mobile Opera Android iOS Safari
Basic support 49 49 Yes No No 36 No

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/resume