Embedded sets incorrect <object type="application/x-shockwave-flash

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

This problem has been fixed in the 6.5 branch. 6.5.3 should be out tomorrow so either wait for that or use the latest 6.5 nightly build.

Thanks for the quick reply, sounds great, I’ll get 6.5.3 when available in the maven repository.

Hi Artur, I’ve just upgraded to 6.5.3 but unfortunately behavior did not change. Vaadin still adds the type=“application/x-shockwave-flash” attribute to the object tag.


<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>


Can you point me to the original bug report?
Edit: found http://dev.vaadin.com/ticket/6501