Back to Content

VideoDecoder: reset() method

files/en-us/web/api/videodecoder/reset/index.md

latest569 B
Original Source

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

The reset() method of the {{domxref("VideoDecoder")}} interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.

Syntax

js-nolint
reset()

Parameters

None.

Return value

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

Examples

The following example resets the VideoDecoder.

js
VideoDecoder.reset();

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}