reset

fun reset()(source)

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

MDN Reference