kevinweber / lazy-load-for-videos

Speed up your site by replacing embedded Youtube and Vimeo videos with a clickable preview image. Free WordPress plugin.
http://wordpress.org/plugins/lazy-load-for-videos/
GNU General Public License v3.0
41 stars 23 forks source link

Fix to allow autoplay Vimeo player on Chrome #33

Closed po5i closed 5 years ago

po5i commented 5 years ago

According to Video official documentation, sometimes Google Chrome can present Video autoplay restrictions, one workaround is to add allow=autoplay parameter to the Vimeo iframe as this PR is proposing.

Now, after I click the thumbnail, the lazyload does its job and the video is played automatically.

Tested on: Chrome 77

kevinweber commented 5 years ago

Great! Thanks Carlos.

po5i commented 5 years ago

Happy to help @kevinweber BTW, can you add the approved review to this PR just for the record? I'd appreciate it.