cac
cac

Reputation: 116

Wmode=transparent and autoplay=1 wont work togather

I have a player from youtube embeded in html page, which i need to play when page is loaded, and since i have a button to remove the player i need wmode=transparent so i can position elements above it.

This is the code for the player i use:

<iframe width="560" height="235" src="http://www.youtube.com/embed/vUd6TpdFLl4?autoplay=1?wmode=transparent" frameborder="0" allowfullscreen></iframe>

If i use just one of them, they work fine, but if i put them togather none of them works.

Any ideas what im doing wrong?

Upvotes: 0

Views: 907

Answers (1)

Bogdan
Bogdan

Reputation: 44526

The correct syntax for the url query string is this:

<iframe width="560" height="235" src="http://www.youtube.com/embed/vUd6TpdFLl4?autoplay=1&amp;wmode=transparent" frameborder="0" allowfullscreen></iframe>

You were adding the second parameter using ? instead of &amp;

Upvotes: 3

Related Questions