close

fun close()(source)

The close() method of the VideoFrame interface clears all states and releases the reference to the media resource.

MDN Reference