Youtube iframe src autoplay not working in chrome browser

Gireesh T picture Gireesh T · May 11, 2018 · Viewed 11.9k times · Source

I have attached this iframe code to my plain html page. here i want to make an auto play when the page is loaded. i tried in firefox its working fine for me . when i load in chrome its not getting the autoplay.

my code is <iframe width="420" height="345" src="https://www.youtube.com/embed/qsP3Y4hHyeM?autoplay=1"> </iframe>

its working fine for firefox browser . but when am loading to the chrome browser its not working.

anybody could you please help me ?

any thing i have to make extra parameters?

Thankyou.

Answer

Problem Solver picture Problem Solver · May 14, 2018

The chrome developer team disabled the autoplay feature to avoid irritation among users because of the automatic video play. You can enable it by the following steps:

  1. Opening a Chrome browser and typing: chrome://flags/#autoplay-policy
  2. Changing the "Autoplay policy" from "Default" to "No user gesture is required"
  3. Pressing "relaunch"
  4. Rebooting the device

From now on autoplay works again in webview components used in your app.