[PATCH] embed standalone npplayer in another program

Martin Stransky stransky at redhat.com
Mon Dec 7 09:12:54 UTC 2009


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




More information about the Nspluginwrapper-devel-list mailing list