4 marzo 2014

How to enable autoplay on VEVO embed videos

Sometimes I need to set the autoplay mode on embed videos and recently I get one from the VEVO site.
VEVO's embed code is like this snippet:
 <iframe allowfullscreen="" frameborder="0" height="324" src="http://cache.vevo.com/m/html/embed.html?video=GB1101400011" width="575"></iframe>  
To enable by default the autoplay you must simply add a second parameter to the url named "autoplay" with the value of "1".
The final embed code is something like this:
 <iframe allowfullscreen="" frameborder="0" height="324" src="http://cache.vevo.com/m/html/embed.html?video=GB1101400011&autoplay=1" width="575"></iframe>