OfflineAudioContext: resume() method

Limited availability

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.

Syntax

js
resume()

Parameters

None.

Return value

A Promise resolving to undefined.

Exceptions

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.

Specifications

Specification
Web Audio API
# dom-offlineaudiocontext-resume

Browser compatibility

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
Chrome – Full support
Chrome 41 (Release date: 2015-03-03)
footnote Full support
Edge – Full support
Edge 14 (Release date: 2016-08-02)
footnote Full support
Firefox – Partial support
Firefox 40 (Release date: 2015-08-11)
footnote Partial support
footnote The method exists but always rejects with NotSupportedError. See bug 1265406.
Opera – Full support
Opera 28 (Release date: 2015-03-10)
footnote Full support
Safari – Full support
Safari 9 (Release date: 2015-09-30)
footnote Full support
Chrome Android – Full support
Chrome Android 41 (Release date: 2015-03-11)
footnote Full support
Firefox for Android – Partial support
Firefox for Android 40 (Release date: 2015-08-11)
footnote Partial support
footnote The method exists but always rejects with NotSupportedError. See bug 1265406.
Opera Android – Full support
Opera Android 28 (Release date: 2015-03-10)
footnote Full support
Safari on iOS – Full support
Safari on iOS 9 (Release date: 2015-09-16)
footnote Full support
Samsung Internet – Full support
Samsung Internet 4 (Release date: 2016-03-11)
footnote Full support
WebView Android – Full support
WebView Android 41 (Release date: 2015-03-11)
footnote Full support
WebView on iOS – Full support
WebView on iOS 9 (Release date: 2015-09-16)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support