configure method

void configure(
  1. VideoEncoderConfig config
)

@AvailableInWorkers("window_and_dedicated")

The configure() method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to "configured" and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters. If the encoder doesn't support the specified parameters or can't be initialized for other reasons an error will be reported via the error callback provided to the VideoEncoder constructor.

If the VideoEncoder has been previously configured, the new configuration will not be applied until all previous tasks have completed.

Implementation

external void configure(VideoEncoderConfig config);