Re: Adding mouse click handler to the plugin
Kevin DeKorte <[email protected]>
| Newsgroups | gmane.comp.mozilla.mplayerplug-in |
|---|---|
| Message-ID | <[email protected]> |
-----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
ok, I see what you are doing. I don't think that the plugin currently
supports what you want to do. I think we would need to create some
javascript methods for that.
What is going on is that the events right now are only setup as read
from the embed tag and so if you try and add them later they are setup.
So the idl has to be updated as well as the code to process the method
defined in the idl.
For completeness we would need to add the following.
onMediaComplete
onMediaCompleteWithError(error)
onEndOfStream
onVisible
onHidden
onDestroy
onClick
onMouseDown(button)
onMouseUp(button)
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
iD8DBQFGt2qi6w2kMH0L1dERAmenAJ9d34DidZV9/QCxkkRmKUXZvtTwHACeN3wN
tgqHFjLMzxg9+lYOz8lre3U=
=Valu
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/