W3cubDocs

/Web APIs

OfflineAudioContext: resume() method

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
resume 41 14 40 No 28 9 41 41 40 28 9 4.0

© 2005–2023 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