Question

So my website can't use HTML5, so I must use the good old HTML4 code, so I tried to go to youtube and get the code from there :

<object width="420" height="315">
    <param name="movie" value="http://www.youtube.com/v/ZuNNhOEzJGA?hl=pt_PT&amp;version=3"></param>
    <param name="allowFullScreen" value="true"></param>
    <param name="allowscriptaccess" value="always"></param>
    <embed src="http://www.youtube.com/v/ZuNNhOEzJGA?hl=pt_PT&amp;version=3" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>

It doesn't work. I've been checking online and found out some other people had the same problem, and by typing http: on embed it would work, but it doesn't, instead I get a flash player warning saying I have a object null trying to connect to youtube.

Am I missing anything ?

Was it helpful?

Solution

try this one, its working or not

    <iframe title="YouTube video player" 

    class="youtube-player" type="text/html" 

    width="560" height="315" 

    src="http://www.youtube.com/embed/ny-M9KA5AhU" frameborder="0" allowfullscreen>
    </iframe>

here it is working fine

OTHER TIPS

Check this one also: HTML - YouTube Videos

    <embed
    width="420" height="345"
   src="http://www.youtube.com/v/XGSy3_Czz8k"
   type="application/x-shockwave-flash">
   </embed>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top