Bug 544992 - [PATCH] embed standalone npplayer in another program
Summary: [PATCH] embed standalone npplayer in another program
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nspluginwrapper
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-07 09:11 UTC by Martin Stransky
Modified: 2011-01-06 13:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-06 13:18:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch (2.87 KB, patch)
2009-12-07 09:11 UTC, Martin Stransky
no flags Details | Diff

Description Martin Stransky 2009-12-07 09:11:24 UTC
Created attachment 376634 [details]
patch

Description of problem:

From: Wade Brainerd <wadetb>

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

Version-Release number of selected component (if applicable):

Comment 1 Bug Zapper 2010-03-15 13:29:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Martin Stransky 2011-01-06 13:18:11 UTC
Added to rawhide.


Note You need to log in before you can comment on or make changes to this bug.