Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

For some reason YouTube videos in my website do not get the fullscreen button, even if I added the parameter allowFullScreen set to true both in the object and embed tag.

Here's an example page: http://www.indievault.it/2011/11/09/indie-vault-alla-games-week-2011-online-la-video-gallery/

Just take a quick look at the source. The allowFullScreen param is there, but the button won't show. Here's an excerpt from the code in that page:

<object width="540" height="325"><param name="movie" value="http://www.youtube.com/v/dvYQhJwwkgA"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dvYQhJwwkgA" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="325"></embed </object>
share|improve this question

2 Answers 2

Try to change your code with this one:

<iframe title="YouTube video player" 
              width="540" height="325" 
              src="http://www.youtube.com/v/dvYQhJwwkgA?rel=0"
              frameborder="0" allowfullscreen>
</iframe>
share|improve this answer
    
Tried it, but still no fullscreen button... any other idea? –  pt2ph8 Nov 12 '11 at 11:39
    
Plus it does not work on iOS. –  pt2ph8 Nov 12 '11 at 12:25

This works for me

<object width="540" height="325"><param name="movie" value="http://www.youtube.com/v/dvYQhJwwkgA?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dvYQhJwwkgA?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="540" height="325" allowscriptaccess="always" allowfullscreen="true"></embed></object>​
share|improve this answer
    
Did this work for you? –  Anagio Mar 11 '12 at 8:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.