HTMLMediaElement interface defined in HTML.
The Web Audio API defines a full-fledged audio processing API that gives precise control over the playback of audio content.
Users often want to control the position at which to start a video (or an audio) feed when they share media content with friends on social networks. The Media Fragments URI specification defines a syntax for constructing media fragment URIs and explains how Web browsers can use this information to jump to the right position in the media timeline.
Specifications in progress
A number of media-capable devices expose specific hardware keys and buttons to facilitate control of playing media; the Media Keys in DOM Level 3 events specification exposes these interactions to Web-based players.
For immersive media experiences enabled by Virtual Reality headsets, media content needs to be adjusted based on the viewer’s head position, orientation and velocity. The work on the WebXR Device API (formerly WebVR) specification addresses this need. The specification also exposes user input mechanisms used in such scenarios.
In any given Web application, media playback can be in competition with media playback from other applications, and the underlying operating system is in charge of determining which of these applications should have the media focus. The Media Session specification exposes these changes of focus to Web applications.
|Feature||Specification / Group||Maturity||Current implementations|
|Key-based control||Media keys in UI Events KeyboardEvent key Values|
Web Platform Working Group
|Virtual reality control||WebXR Device API|
Immersive Web Working Group
|OS-wide media control||Media Session|
Media Working Group
|User Interface||CSS Spatial Navigation Level 1|
CSS Working Group
Devices which can access broadcast content need to offer ways to select which broadcast signal to play; the TV Control API is an attempt to provide such an interface for broadcast TV and radio. The API also exposes the Electronic Program Guide when it is streamed with the media content, and explores ways to expose applications embedded in media streams as is common in interactive TV platforms (ATSC, HbbTV, Hybridcast). This work has been discontinued for lack of interest to the API as specified among potential implementers. Discussions on scope, use cases and requirements for these features have now moved to the Media and Entertainment Interest Group.
The Multi-Device Timing Community Group is exploring media control across devices: its Timing Object specification enables coordinatinatgion of the playback of multiple video, audio and other data streams in close synchrony, within a single device and across devices, independently of the network topology. This proposal would replace and extend the
MediaController interface, which was dropped from HTML for lack of implementations.
To preserve bandwidth, memory and battery on mobile, and prevent possibly unwanted media playback, browsers have put autoplay policies into place and may deny automated playback of media content. The Autoplay Policy Detection specification is an early proposal to let applications know whether autoplay will succeed for a given media element.
Features not covered by ongoing work
- 360° video controls
- To render 360° videos, applications can either rely on native support for 360° video codecs from web browsers and stick to integrated controls, or they can provide their own controls but then need to handle the underlying projection logic and adaptive streaming programmatically. Exposing controls for 360° videos on the
HTMLMediaElementinterface would allow applications to customize the user experience and still take advantage of native 360° video playback support when available.