setPositionState

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

The setPositionState() method of the MediaSession interface is used to update the current 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