setPositionState method

void setPositionState([
  1. MediaPositionState state
])

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. This can be particularly useful if your code implements a player for type of media not directly supported by the browser.

Call this method on the navigator object's navigator.mediaSession object.

Implementation

external void setPositionState([MediaPositionState state]);