Re: [Mplayerplug-in-devel] Adding mouse click handler to the plugin
Brought to you by:
kdekorte
From: Kevin D. <kde...@gm...> - 2007-08-06 19:33:04
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Asaf O wrote: > ok got the real object throigh : > wrapper.wrappedJSObject > now I can call functions like stop,,play > but still, > click doesnt raise any events, : > 1. element.onclick > 2. element.addEventListener > > when clicking in the video window > > 10x > Grab CVS and now you should be able to do this. (Case is important) element.onClick("MethodToCallOnClick();"); Wasn't super hard to implement, about 20 lines of code. Also made the change to gecko-mediaplayer. 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 iD8DBQFGt3dq6w2kMH0L1dERAo8zAJ9GDbYqjhnbJke0CKf9mosVdo3OPQCggajm pTdn0RGTiew9oALpKDA+mh8= =PFHL -----END PGP SIGNATURE----- |