A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/VideoEncoder/reset below:

VideoEncoder: reset() method - Web APIs

VideoEncoder: reset() method

Limited availability

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Note: This feature is available in Dedicated Web Workers.

The reset() method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the state to "unconfigured". After calling reset(), configure() must be called before resuming encode() calls.

Note: To avoid discarding frames queued via encode(), flush() should be called and completed before calling reset().

Syntax Parameters

None.

Return value

None (undefined).

Exceptions
InvalidStateError DOMException

Thrown if the state is "closed".

Examples

The following example resets the VideoEncoder.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4