From wadetb at gmail.com Sat Dec 5 05:48:46 2009 From: wadetb at gmail.com (Wade Brainerd) Date: Sat, 5 Dec 2009 00:48:46 -0500 Subject: [PATCH] embed standalone npplayer in another program Message-ID: <7087c32a0912042148n44b1eda6s70db3340d92bc73d@mail.gmail.com> Hi, I'm experimenting with adding the ability to embed Flash content in Sugar activities. (Sugar is the software behind One Laptop Per Child, see http://sugarlabs.org). Sugar activities are typically written in PyGTK. I have it working fine with Gnash, by running the standalone Gnash player with the -x option and the XID of a gtk.Socket window that my activity creates. The -x parameter tells Gnash to create a GtkPlug widget instead of its main window, attaching the given XID. This nicely embeds the Gnash player inside my PyGTK program. I'm trying to replicate the same thing with the Adobe player. The Adobe standalone player doesn't appear to accept a -x option. So, I'm using nspluginwrapper and the Adobe plugin. All I had to do was add support for passing an XID into the standalone nspluginwrapper program, npplayer. The patch to do so is attached. It adds a --xid N option to npplayer which causes a GtkPlug to be created at startup instead of the top level window. It allows any NS plugin to be embedded in any GTK program by virtue of the GtkPlug / GtkSocket system, which is a stated goal of the nspluginwrapper project. I hope someone else finds it useful. Best, Wade (PS - I'm new to nspluginwrapper, so if there is an easier way to do what I've done please let me know!) -------------- next part -------------- A non-text attachment was scrubbed... Name: npplayer-xid.patch Type: application/octet-stream Size: 2936 bytes Desc: not available URL: From stransky at redhat.com Mon Dec 7 09:12:54 2009 From: stransky at redhat.com (Martin Stransky) Date: Mon, 07 Dec 2009 10:12:54 +0100 Subject: [PATCH] embed standalone npplayer in another program In-Reply-To: <7087c32a0912042148n44b1eda6s70db3340d92bc73d@mail.gmail.com> References: <7087c32a0912042148n44b1eda6s70db3340d92bc73d@mail.gmail.com> Message-ID: <4B1CC716.6000309@redhat.com> Filled as https://bugzilla.redhat.com/show_bug.cgi?id=544992 I'll check it when i have some time.. Thanks, ma. On 12/05/2009 06:48 AM, Wade Brainerd wrote: > Hi, > > I'm experimenting with adding the ability to embed Flash content in > Sugar activities. (Sugar is the software behind One Laptop Per Child, > see http://sugarlabs.org). Sugar activities are typically written in > PyGTK. > > I have it working fine with Gnash, by running the standalone Gnash > player with the -x option and the XID of a gtk.Socket window > that my activity creates. The -x parameter tells Gnash to create a > GtkPlug widget instead of its main window, attaching the given XID. > This nicely embeds the Gnash player inside my PyGTK program. > > I'm trying to replicate the same thing with the Adobe player. The > Adobe standalone player doesn't appear to accept a -x option. > So, I'm using nspluginwrapper and the Adobe plugin. All I had to do > was add support for passing an XID into the standalone nspluginwrapper > program, npplayer. > > The patch to do so is attached. It adds a --xid N option to npplayer > which causes a GtkPlug to be created at startup instead of the top > level window. It allows any NS plugin to be embedded in any GTK > program by virtue of the GtkPlug / GtkSocket system, which is a stated > goal of the nspluginwrapper project. > > I hope someone else finds it useful. > > Best, > Wade > > (PS - I'm new to nspluginwrapper, so if there is an easier way to do > what I've done please let me know!) > > > > _______________________________________________ > Nspluginwrapper-devel-list mailing list > Nspluginwrapper-devel-list at redhat.com > https://www.redhat.com/mailman/listinfo/nspluginwrapper-devel-list From wadetb at gmail.com Wed Dec 9 00:24:19 2009 From: wadetb at gmail.com (Wade Brainerd) Date: Tue, 8 Dec 2009 19:24:19 -0500 Subject: [PATCH] embed standalone npplayer in another program In-Reply-To: <4B1CC716.6000309@redhat.com> References: <7087c32a0912042148n44b1eda6s70db3340d92bc73d@mail.gmail.com> <4B1CC716.6000309@redhat.com> Message-ID: <7087c32a0912081624k50a5578dla2b079d1ba5a7990@mail.gmail.com> Thanks for filing it! Best, Wade On Mon, Dec 7, 2009 at 4:12 AM, Martin Stransky wrote: > Filled as https://bugzilla.redhat.com/show_bug.cgi?id=544992 > I'll check it when i have some time.. > > Thanks, > ma. > > On 12/05/2009 06:48 AM, Wade Brainerd wrote: >> >> Hi, >> >> I'm experimenting with adding the ability to embed Flash content in >> Sugar activities. ?(Sugar is the software behind One Laptop Per Child, >> see http://sugarlabs.org). ?Sugar activities are typically written in >> PyGTK. >> >> I have it working fine with Gnash, by running the standalone Gnash >> player with the -x ?option and the XID of a gtk.Socket window >> that my activity creates. ?The -x parameter tells Gnash to create a >> GtkPlug widget instead of its main window, attaching the given XID. >> This nicely embeds the Gnash player inside my PyGTK program. >> >> I'm trying to replicate the same thing with the Adobe player. ?The >> Adobe standalone player doesn't appear to accept a -x ?option. >> So, I'm using nspluginwrapper and the Adobe plugin. ?All I had to do >> was add support for passing an XID into the standalone nspluginwrapper >> program, npplayer. >> >> The patch to do so is attached. ?It adds a --xid N option to npplayer >> which causes a GtkPlug to be created at startup instead of the top >> level window. ?It allows any NS plugin to be embedded in any GTK >> program by virtue of the GtkPlug / GtkSocket system, which is a stated >> goal of the nspluginwrapper project. >> >> I hope someone else finds it useful. >> >> Best, >> Wade >> >> (PS - I'm new to nspluginwrapper, so if there is an easier way to do >> what I've done please let me know!) >> >> >> >> _______________________________________________ >> Nspluginwrapper-devel-list mailing list >> Nspluginwrapper-devel-list at redhat.com >> https://www.redhat.com/mailman/listinfo/nspluginwrapper-devel-list > > _______________________________________________ > Nspluginwrapper-devel-list mailing list > Nspluginwrapper-devel-list at redhat.com > https://www.redhat.com/mailman/listinfo/nspluginwrapper-devel-list >