dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.38k stars 3.49k forks source link

Video popup iframe needs mute=1 added to vimeo and youtube to allow auto play #1111

Open atrzyna opened 5 years ago

atrzyna commented 5 years ago

Recently chrome made some changes where unmuted videos will not auto play. The iframe src for both youtube and vimeo needs to be updated to the following to allow auto play again.

//www.youtube.com/embed/%id%?autoplay=1&mute=1 //player.vimeo.com/video/%id%?autoplay=1&muted=1

craigtommola commented 3 years ago

It appears that ALL iframe youtube videos have autoplay=1&mute=1 now ... how would we use autoplay=0&mute=0 given this change? I'd rather have the user click play and have the audio at the ready, as opposed to video autoplay and the user not knowing if it's muted or quiet.

Adithya188288 commented 3 years ago

The solution mentioned by @apmeyer in this issue https://github.com/dimsemenov/Magnific-Popup/issues/1123 works.