today i tried to implement a Youtube Video in my Java application by using the swt.browser.
That woked great with simple Videos.
Then i decided to use the Youtube Player API to design a own player that looks better in my application.
And there comes the problem:
After a few hours bugfinding, i figured out, that the SWT Browser can't display Flash contents in a <object> tag.
Here is my Object:
<object id="ytplayer" width="100%" height="100%" style="visibility: visible;" data="[link to youtube]/apiplayer?enablejsapi=1&playerapiid=ytplayer" type="application/x-shockwave-flash">
<param value="always" name="allowScriptAccess">
And here is the embed, that works:
<embed id="ytplayer" width="100%" height="100%" name="plugin" src="[link to youtube]/apiplayer?enablejsapi=1&playerapiid=ytplayer" type="application/x-shockwave-flash">