Just a note: If a write this code:
var params = { allowScriptAccess: "always" };
var atts = { id: "video" };
swfobject.embedSWF("http://www.youtube.com/v/_poR526xqAY?
enablejsapi=1&playerapiid=ytplayer",
"video", "360", "275", "8", null, null,
params, atts);
on the script console of the Firebug, it works ( replaces the div
VIDEO with the embed player)
On Jun 24, 3:29 pm, Thiago Miranda de Oliveira <[email protected]>
wrote:
> Hi.. Here we have this widget:
>
> public class LiquidVideoPlayer extends LiquidWidget {
>
> @UiTemplate("LiquidVideoPlayer.ui.xml")
> interface Binder extends UiBinder<HTMLPanel, LiquidVideoPlayer> { }
> private static final Binder binder = GWT.create( Binder.class );
>
> Element excluirProjeto;
>
> public LiquidVideoPlayer() {
> initLiquidWidget(binder.createAndBindUi(this));
>
> final LiquidDialog dialogDeleteVersion = new
> LiquidDialog("Excluir a
> versão", new LiquidDeleteVersion(), "delete-version grid-6");
> });
>
> testeSwf();
> }
>
> public native void testeSwf() /*-{
> var params = { allowScriptAccess: "always" };
> var atts = { id: "video" };
> $wnd.swfobject.embedSWF("http://www.youtube.com/v/_poR526xqAY?
> enablejsapi=1&playerapiid=ytplayer",
> "video", "360", "275", "8", null, null, params, atts);
> }-*/;
>
> The widget has a DIV with the ID of "video" but the swfobject can't
> find it. If I put a "document.getElementById("video") in the jsni
> native function it returns null. $doc.getElementById("video") also
> returns null so I'm guessing that the swfobject doesn't find the DIV
> because of that. How can I make it work?
>
> Thanks
> Thiago
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.