video youtube in autoplay
January 17th, 2008
Quando si include un video preso da Youtube in una pagina web, questo video viene visualizzato nella pagina in modo che il visitatore debba cliccare sul tasto play per farne partire la riproduzione.
Tuttavia, esiste un modo per far si che la riproduzione del video parta in automatico? La rispostsa è si.
E’ sufficiente apportare alcune piccole modifiche al codice che youtube ci mette a disposizione.
Il pezzo di codice che youtube ci fornisce è formato da un tag OBJECT, che contiene in ordine 2 tag PARAM e un tag EMBED.
Dobbiamo eliminare completamente i due tag param e modificare il valore dell’attributo src del tag EMBED, aggiungendogli in coda la stringa &autoplay=1.
Il gioco è fatto, una volta effettuate queste modifiche il video dovrebbe partire in automatico.
When u include a youtube video in a web page, it is shown in the page in a way that the user has to click on the play button in order to reproduce it.
Otherwise, is there a way to make the video play automatically? The answer is yes.
You need just some small changes to the code that youtube provides.
The piece of code that youtube provides is composed of a OBJECT tag, wich contains 2 PARAM tags and one EMBED tag.
We have to completely delete the PARAM tags and modify the value of the src attribute, in the EMBED tag, adding the string &autoplay=1 in the end of it.
It’s enough, when you have done these changes the video should play automatically.



