browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

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

Open estelle opened this issue 2 years ago • 1 comments

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

estelle avatar Dec 19 '22 00:12 estelle

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.

skyclouds2001 avatar Jan 30 '24 16:01 skyclouds2001