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.
i firefox on page laod its autoplay video but on chrome it does not autoplay pls advice i want iframe view should autoplay on all browser autoplay You need to add &muted=1 to the iFrame src path and add attribute allow="autoplay" to the iFrame. Now the video starts automatically in Chrome.
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: Changing the "Autoplay policy" from "Default" to "No user gesture is required" From now on autoplay works again in webview components used in your app.
Here is the tutorial on how to fix “YouTube AutoPlay not working Chrome”: Step 1: Open Google Chrome and click More Tools and Clear browsing data from its menu (three vertical dots at the top right corner). Step 2: Click Sign out at the bottom of the new page if you have signed in your Google account.
Step 1: Open the extension page on your browser. Safari: Click Preference on the Safari app and then go to the Extensions tab. Step 2: Disable all extensions expect the Turn Off the Lights browser extension. YouTube AutoPlay might fail to work if there are too many videos in your playlist.
This is a feature introduced by the Chrome development team back in 2018: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
and a related requirement: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
The article explains what conditions, regarding the embedded audio/video content & regarding the user interaction, are being required in order to make Autoplay functioning:
Top frames can delegate autoplay permission to their iframes to allow autoplay with sound
<!-- Autoplay is allowed. -->
<iframe src="https://cross-origin.com/myvideo.html" allow="autoplay">
<!-- Autoplay and Fullscreen are allowed. -->
<iframe src="https://cross-origin.com/myvideo.html" allow="autoplay; fullscreen">
Media Engagement Index (MEI)
The MEI measures an individual's propensity to consume media on a site. Chrome's current approach is a ratio of visits to significant media playback events per origin:
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:
From now on autoplay works again in webview components used in your app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With