Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media element autoplay cannot be tested because supporting it is optional #4772

Open
foolip opened this issue Feb 9, 2017 · 3 comments
Open

Comments

@foolip
Copy link
Member

foolip commented Feb 9, 2017

In https://html.spec.whatwg.org/multipage/embedded-content.html#ready-states the requirements around autoplay are all "may" and there is this note:

User agents do not need to support autoplay, and it is suggested that user agents honor user preferences on the matter. Authors are urged to use the autoplay attribute rather than using script to force the video to play, so as to allow the user to override the behavior if so desired.

Still, when UAs do support autoplay, it is very much possible to test that it has the right timing and that e.g. calling video.pause() causes autoplay to never happen.

To test this, we would need to either strengthen the requirements in HTML, or have some kind of testing API to set the user preference.

@jgraham

@robwalch
Copy link

robwalch commented Sep 8, 2017

video.play() Promise coverage would be nice :)

@foolip
Copy link
Member Author

foolip commented Sep 9, 2017

@robwalch, do you mean tests for the play promise generically, or specifically around autoplay?

@mounirlamouri FYI

@foolip
Copy link
Member Author

foolip commented Oct 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants