reset method
void
reset()
@AvailableInWorkers("window_and_dedicated")
The reset()
method of the VideoEncoder interface synchronously
cancels all pending encodes and callbacks, frees all underlying resources
and sets the VideoEncoder.state to "unconfigured".
After calling VideoEncoder.reset, VideoEncoder.configure must be
called before resuming VideoEncoder.encode calls.
Note: To avoid discarding frames queued via VideoEncoder.encode, VideoEncoder.flush should be called and completed before calling VideoEncoder.reset.
Implementation
external void reset();