The Media Session API's
MediaPositionState dictionary is used to represent the current playback position of a media session. Its contents can be used by the user agent to provide a user interface displaying information about the playback position and duration of the media currently being performed.
- A floating-point value giving the total duration of the current media in seconds. This should always be a positive number, with positive infinity (
Infinity) indicating media without a defined end, such as a live stream.
- A floating-point value indicating the rate at which the media is being played, as a ratio relative to its normal playback speed. Thus, a value of 1 is playing at normal speed, 2 is playing at double speed, and so forth. Negative values indicate that the media is playing in reverse; -1 indicates playback at the normal speed but backward, -2 is double speed in reverse, and so on.
- A floating-point value indicating the last reported playback position of the media in seconds. This must always be a positive value.
No specification found
No specification data found for
Check for problems with this page or contribute a missing
spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.