HomePhabricator

Do not require user gesture for video autoplaying
a11997b7c20bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Do not require user gesture for video autoplaying

Wikispeech QUnit tests exercise sound playing with the .play() function.
Since Chromium 66, the autoplay policy has changed and video can no more
be automatically played unless the users already visited the site a few
times. Some of the QUnit tests would thus fail with:

play() failed because the user didn't interact with the document first.
https://goo.gl/xX8pDD

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

The trick is to change the autoplay policy to not require user gesture.
That can be done from the command line with:

--autoplay-policy=no-user-gesture-required

Credits: https://github.com/obsproject/obs-browser/issues/105

Bug: T197687
Change-Id: Iaecb16d2b1de0ff69ac7878e9860b2990e6e6e64

Details

Provenance
hasharAuthored on Jun 22 2018, 11:52 AM
ChangeId
Iaecb16d2b1de0ff69ac7878e9860b2990e6e6e64

Commit No Longer Exists

This commit no longer exists in the repository.