Hi,
I have the following piece of code (reused from http://uilder.virtuallypreinstalled.com/run/youtube/):
Embedded videoPlayer = new Embedded();
videoPlayer.setType(Embedded.TYPE_OBJECT);
videoPlayer.setMimeType("application/x-shockwave-flash");
videoPlayer.setSource(new ExternalResource("http://www.youtube.com/v/I5O2eetp5tw"));
videoPlayer.setWidth("250");
videoPlayer.setHeight("200");
layout.addComponent(videoPlayer, "video");
This generated the following HTML excerpt:
<object width="250px" height="200px" type="application/x-shockwave-flash"><param value="transparent" name="wmode"><param value="http://www.youtube.com/v/I5O2eetp5tw" name="movie"><embed width="250px" height="200px" movie="http://www.youtube.com/v/I5O2eetp5tw" wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/v/I5O2eetp5tw"></object>
In FireFox (3.6.13) this does not launch the YouTube movie. When I remove
type="application/x-shockwave-flash"
from the tag the movie launches. On http://uilder.virtuallypreinstalled.com/run/youtube/ I cannot see this behavior…
What am I doing wrong to embed this YouTube movie? It seems to be working fine in Chrome and Safari…
Johannes