Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. VideoEncoder
  4. reset()

VideoEncoder: reset() method

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

Note: This feature is available inDedicated Web Workers.

Thereset() method of theVideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets thestate to "unconfigured".After callingreset(),configure() must be called before resumingencode() calls.

Note:To avoid discarding frames queued viaencode(),flush() should be called and completed before callingreset().

Syntax

js
reset()

Parameters

None.

Return value

None (undefined).

Exceptions

InvalidStateErrorDOMException

Thrown if thestate is"closed".

Examples

The following example resets theVideoEncoder.

js
VideoEncoder.reset();

Specifications

Specification
WebCodecs
# dom-videoencoder-reset

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp