← Back to release summary

Position State for Media Session

Category
Multimedia
Type
New or changed feature
Status
Enabled by default (Chrome 81)
Intent stage
Start prototyping

Summary

Adds support for tracking position state in a media session. The position state is a combination of the playback rate, duration and current playback time. This can then be used by browsers to display position in the UI and with the addition of seeking can support seeking/scrubbing too. By default, the position state is taken from the media element. However, this does not work in all cases and therefore this provides a setPositionState() method to the site to specify a custom position state.

Motivation

We should add support for tracking position state since this is supported by the platform and allows sites to provide a better experience.

Standards & signals

Docs: N/A

Explainers: https://github.com/WICG/mediasession/blob/master/explainer.md

View on chromestatus.com