mdn / browser-compat-data

This repository contains compatibility data for Web technologies as displayed on MDN
https://developer.mozilla.org
Creative Commons Zero v1.0 Universal
4.9k stars 1.97k forks source link

html.elements.video - data on autoplay not enabled if muted attribute is omitted. #18449

Open estelle opened 1 year ago

estelle commented 1 year ago

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

it would be helpful to list which browsers won't autoplay if muted isn't set

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

a row for "autoplay on muted only" in the compat table.

In some browsers (e.g. Chrome 70.0) autoplay doesn't work if no muted attribute is present.

is this still the case? are other browsers effected?

Did you test this? If so, how?

No response

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

MDN metadata

MDN page report details * Query: `html.elements.video` * Report started: 2022-12-19T00:06:58.661Z
skyclouds2001 commented 7 months ago

But whether an autoplay video is allowed to play is a complex situation, which may also relates with which website it belongs to

For Chrome, the case is some websites that users may use and watch video frequently, the user agent is like to allow the video to autoplay even the video is not set for muted, which can be checked in chrome://media-engagement/

And there is a method to check if current website is allows to autoplay, the navigator.getAutoplayPolicy() method in https://w3c.github.io/autoplay/

so, there is no surely rule that:

In some browsers (e.g. Chrome 70.0) autoplay doesn't work if no muted attribute is present.