Css – Youtube iframe embedded video not working (black screen)

cssfirefoxiframemacosyoutube

On Diveboard, we made a nice hack of photoswipe to support videos

Everything went well until I discovered Firefox 11 and 12 beta are not playing the youtube videos embedded any more… it seems they are loaded, we can hear sound ad pufff no images… so it's youtube radio instead
you can see an example here : Video example page

And i've been scratching my head over and over on that one but I'm clueless 🙁 🙁

EDIT : Apparently it's an issue ONLY ON OSX!!! which makes me even more clueless…

Any hint would be apreciated

the iframe code is pretty straightforward:

<iframe width='#{width}' height='#{height}' src='http://www.youtube.com/embed/#{matchdata}?wmode=opaque&autoplay=1' frameborder='0' allowfullscreen></iframe>

Best Answer

What CSS styling are you using on your iframe? http://argylesocial.com used border-radius on youtube html5 iframes, and removing those style declarations resolved the problem.

I had to remove both -moz-border-radius and border-radius the get video to properly display. Works like a charm now!