Hi,Kevin,

I was trying to understand how mplayerplug-in bubbles up events from mplayer to javascript (for instance, endofstream), but I don't quite grasp what is going on at
http://mplayerplug-in.cvs.sourceforge.net/mplayerplug-in/mplayerplug-in/Source/plugin-setup.cpp?view=markup#l_956

1- Why is 'endofstream' (and all other events) being compared to a parameter received by the method 'void New(nsPluginInstance * instance, nsPluginCreateData * parameters)'? Is this function called at every event mplayer issues?
2- When does mplayerplug-in actually calls the javascript function? It seems that it is at the NPN_GetURL(...) in plugin.cpp , but I'm not sure at all.
3- What is the actual content of
mediaCompleteCallback, onDestroyCallback etc? Is it a url? It looks strange.

Would you mind to elaborate a bit on how these events end up calling javascript functions?

Thanks in advance,
Marcus



On 4/14/07, Kevin DeKorte <kdekorte@gmail.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mrc Gran wrote:
> Hi,
> Does mplayerplug-in send/receive events to/from javascript?
> I'd like to callback a javascript function when mplayerplug-in reached
> the end of a videostream, and if possible to replace the videostream url
> which mplayerplug-in just played for a new one to play next and command
> it to play the new url.
> []s,
> Marcus

Read DOCS/tech/javascript.txt that is delivered with the source code...
it shows them all..

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 Fedora - http://enigmail.mozdev.org

iD8DBQFGIPM96w2kMH0L1dERAgX6AJ92B3zsOtfn2gNnJvledf/W/nEJEQCdFZ0X
767KLYrU2O9nHAA3bxt3bbs=
=4xzL
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mplayerplug-in-devel mailing list
Mplayerplug-in-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel