Youtube te proporciona el siguiente código para insertar el video:
<iframe width="560" height="315" src="https://www.youtube.com/embed/[Video ID]" frameborder="0" allowfullscreen></iframe>
Pues bien, para realizar la reproducción automática en cuanto la página esté cargada, hay que añadir lo siguiente:
<iframe width="560" height="315" src="https://www.youtube.com/embed/[Video ID]?autoplay=1" frameborder="0" allowfullscreen></iframe>
Deja un comentario