Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Autoplay Policy - Chrome 76

Tags:

I'm building a kiosk media which runs on Chrome that plays video with audio. I know that chrome by default only allows autoplay for videos with muted props.

And i know that i WAS able to override this by enabling a flag in chrome via chrome://flags/#autoplay-policy

I have just updated to Chrome 76 and this flag seems to be gone and the autoplaying of video doesn't seem to work anymore!

Any idea how do i overcome this?

[Chrome 76.0.3809.100 (Official Build) (64-bit)] Mac OS Mojave

like image 431
wsgg Avatar asked Aug 12 '19 05:08

wsgg


People also ask

Does Google Chrome allow autoplay?

Step 1 - Open the Google Chrome browser. Step 3 - Click the Autoplay policy drop-down and select "No user gesture is required." This will make it so that you don't need to intereact with the page in order for the video or audio to start playing automatically.

How do I turn off autoplay on Google Chrome?

First, launch Chrome on your phone or tablet and go to Settings > Site Settings. Next, scroll down the menu and tap on Media, and then Autoplay and toggle the switch off.

How do I turn off autoplay policy?

You can disable the autoplay policy entirely by using a command line flag: chrome.exe --autoplay-policy=no-user-gesture-required . This allows you to test your website as if user were strongly engaged with your site and playback autoplay would be always allowed.


Video Answer


1 Answers

I just spoke to some developers from Google about this issue recently. I submitted a bug. They have been very helpful.

Even though autoplay policy chrome flag was removed in https://chromium-review.googlesource.com/c/chromium/src/+/1593800, you can still run Chrome with a specific autoplay policy from the command line.

Autoplay policy that does not require any user gesture.

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --autoplay-policy=no-user-gesture-required

They say this command will stay, so that's good but even better Chrome allows you to always enable autoplay by explicitly allowing a website to make sound "Site Settings > Sound"

Good luck.

like image 52
code Avatar answered Sep 17 '22 02:09

code