#810: Autoplay Policy Detection API

Visit on Github.

Opened Jan 27, 2023

Wotcher TAG!

I'm requesting a TAG review of Autoplay Policy Detection API.

Most user agents have their own mechanisms to block autoplaying media, and those mechanisms are implementation-specific. Web developers need to have a way to detect if autoplaying media is allowed or not in order to make actions, such as selecting alternate content or improving the user experience while media is not allowed to autoplay. For instance, if a user agent only blocks audible autoplay, then web developers can replace audible media with inaudible media to keep media playing, instead of showing a blocked media which looks like a still image to users. If the user agent does not allow any autoplay media, then web developers could stop loading media resources and related tasks to save the bandwidth and CPU usage for users.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: We are looking to send an Intent-to-ship for Firefox within the next few upcoming releases (Fx111+).
  • The group where the work on this specification is currently being done: MediaWG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): MediaWG
  • Major unresolved issues with or opposition to this specification: N/A but there was a privacy fingerprinting concern issue which has been closed but could be re-discussed if necessary.
  • This work is being funded by: Mozilla Firefox

You should also know that this API was already implemented in Firefox, which is currently only enabled on Nightly channel and haven't been pushed on the Release channel yet. Safari and Chrome expressed the interest during the past discussions but haven't express an explicit timeline when they would start prototyping this spec.

We'd prefer the TAG provide feedback as (please delete all but the desired option):

🐛 open issues in our GitHub repo for each point of feedback

Discussions

2023-02-13

Minutes

Amy: Lea and I reviewed at the f2f... left a comment.

Dan: Sangwhan set it to proposed closed.

Amy: I think we can close this as satisfied.