Iframe allow=autoplay

Chrome Vimeo Iframe autoplay not working anymore

Annotating the with an allow attribute worked for me:

It's called "Iframe delegation" and is described here: //developers.google.com/web/updates/2017/09/autoplay-policy-changes.


You need to add &muted=1 to the iFrame src path and you need to add the attribute allow="autoplay" to the iFrame. Now the Vimeo video starts automatically again in Chrome.


yes, according to their documentation it is.

//help.vimeo.com/hc/en-us/articles/115004485728-Autoplaying-and-looping-embedded-videos

EDIT:

Advance browsers like FireFox, Chrome and Safari are now blocking video autoplay by default.

CHROME Auto-Play Policy:

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

The Media Engagement Index, or MEI for short, a way of Chrome is to allow AutoPlay audio on your page to be based on your previous interactions with this webpage as a user. You can see what this looks like by going to

chrome://media-engagement/

MEI is calculated per user profile, and is persisted to incognito mode.

WEBKIT/SAFARI Auto-Play Policy:

//webkit.org/blog/7734/auto-play-policy-changes-for-macos/

FIREFOX Auto-Play Improvements:

//www.ghacks.net/2018/09/21/firefox-improved-autoplay-blocking/

NOTE: Dont assume a media element will play, and dont show the pause button from the start. Look at the Promise returned by the play function on HTMLMediaElement to see if it was rejected:

var promise = document.querySelector['video'].play[]; if [promise !== undefined] { promise.catch[error => { // Auto-play was prevented // Show a UI element to let the user manually start playback }].then[[] => { // Auto-play started }]; }

Video liên quan

Chủ Đề