[Opera-Linux] video playback using the mplayerplugin succesor "Gecko media player" is broken due to a bug in Opera
Kevin DeKorte
kdekorte at gmail.com
Wed May 30 12:12:22 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eirik Byrkjeflot Anonsen wrote:
> Not necessarily. There are certain parts of the mozilla plug-in
> interface we do not emulate. The most important things being that
> we're not running a gtk main loop, and we don't implement XUL, XPCOM
> or anything built on top of that. At least some plug-ins depend on
> these things (mplayer plug-in used to depend on gtk.)
>
> I haven't been keeping an eye on the mozilla plug-in interface, so I
> don't know if they still recommend making plug-ins depend on gtk. I'm
> pretty sure they used to do so.
>
> eirik
Actually, I know that gtk is not the toolkit you should be using when
developing a cross browser plugin. In mplayerplug-in X mode was
developed for this purpose, and X mode would have been dropped if not
for the Opera users of it begging for it. The example plugin I gave does
not have anything but X in it I believe so all the events in it should work.
With gecko-mediaplayer, there is no widget toolkit in the plugin at all.
As part of the design of it the gui was contained in the GNOME MPlayer
application and gecko-mediaplayer uses dbus to instruct gnome-mplayer
what to play and where to play it. Part of that instruction is to embed
gnome-mplayer in the window that Opera gives it via the SetWindow event.
Now if Opera destroys this window to soon then this causes all kinds of
problems.
I also took a look at the plugin code and and there is a block of code
called npp_gate.cpp. This code handles all the events like NPP_Destroy
and NPP_SetWindow. I believe everything is there that Opera expects.
After doing a little research is seems the shut call is called from
NPP_Destroy. So that is where that event is coming from.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Remi - http://enigmail.mozdev.org
iD8DBQFGXWnn6w2kMH0L1dERAlEhAJ95l4KzIOoxylfaUbAY9UJDY7nl8wCeOk9R
GbQ9Zaie2Q3L9EiXHUO80MQ=
=dRc0
-----END PGP SIGNATURE-----
More information about the Opera-Linux
mailing list