Back to Content

AudioEncoder: close() method

files/en-us/web/api/audioencoder/close/index.md

latest505 B
Original Source

{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The close() method of the {{domxref("AudioEncoder")}} interface ends all pending work and releases system resources.

Syntax

js-nolint
close()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Examples

The following example closes the AudioEncoder.

js
AudioEncoder.close();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}