Skip to content
Media Session Standard
Python Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Adding documentation about Windows' SMTC (#204) Nov 5, 2018
.gitignore Update some tooling (pr preview, auto-deploy). Nov 20, 2018
.pr-preview.json Update some tooling (pr preview, auto-deploy). Nov 20, 2018
.travis.yml Update some tooling (pr preview, auto-deploy). Nov 20, 2018
CONTRIBUTING.md Update spec info to point to Media WG (#222) Jul 29, 2019
LICENSE.md Update spec info to point to Media WG (#222) Jul 29, 2019
Makefile Use local bikeshed if installed on the system. (#154) Dec 15, 2016
README.md Update spec info to point to Media WG (#222) Jul 29, 2019
deploy.sh Fix deploy.sh, rename files and remove html one. Jul 8, 2016
deploy_key.enc
explainer.md Add position state to the explainer (#230) Aug 20, 2019
format.py Teach format.py to reflow lines that are not in a <p>... or similar May 6, 2015
index.bs Fix fastSeek Web IDL type declaration (#240) Sep 27, 2019
security-privacy-questionnaire.md Update spec info to point to Media WG (#222) Jul 29, 2019
use_cases.md Adding documentation about Windows' SMTC (#204) Nov 5, 2018
w3c.json Update spec info to point to Media WG (#222) Jul 29, 2019

README.md

Media Session Standard

https://w3c.github.io/mediasession/

This standardization project aims to add support for media keys and audio focus to the Web. Media keys, like play, pause, fast forward and rewind, are found on keyboards, headsets, remote controls, and on lock screens of mobile devices.

Explainer

The explainer of the MediaSession API can be found here.

Use cases

The use cases of the MediaSession API can be found here.

Extensibility

Our goal is to provide developers with low-level primitives that both help explain the platform, while also allowing developers to build rich multimedia experiences that leverage media key events. Keeping to our commitment to the extensible web manifesto, we want to allow the media key events to be routed to wherever you need them in your web application. At the same time, we want to make sure that whatever solution we come up with is easy to use – by possibly extending existing HTML elements or APIs.

Limitations

Access to media keys and lock screen UI will only be granted when audio playback begins, ensuring that audio focus is not taken from another application prematurely and that lock screen UI is only shown when it can be used. This matches the iOS model.

Contribute

This spec is built using Bikeshed.

Update index.bs and send a Pull Request with your changes. When your Pull Request will be merged, a new index.html will be generated. If you want to test locally, you can run make to generate index.html using Bikeshed's web interface. However, you should not send the index.html file in your Pull Request.

To run Bikeshed locally, install Bikeshed and then run bikeshed spec in the working directory.

Everyone is welcome to contribute! See the CONTRIBUTING.md file for practical licensing details for contributions.

Code of conduct

We are committed to providing a friendly, safe and welcoming environment for all. Please read and respect the W3C Code of Conduct.

You can’t perform that action at this time.