Bug 544992

Summary: [PATCH] embed standalone npplayer in another program
Product: [Fedora] Fedora Reporter: Martin Stransky <stransky>
Component: nspluginwrapperAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: caillon, stransky, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-06 13:18:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch none

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.