setPositionState

fun setPositionState(state: MediaPositionState = definedExternally)(source)

The setPositionState() method of the document's media playback position and speed for presentation by user's device in any kind of interface that provides details about ongoing media.

MDN Reference