[vlc-commits] commit: mozilla: rework events (Jean-Paul Saman )

git at videolan.org git at videolan.org
Tue Sep 7 13:03:11 CEST 2010


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Jul 30 11:51:12 2010 +0200| [bb12c0f13bc6a3bb1fd7724e97b034a8aeaf691c] | committer: Jean-Paul Saman 

mozilla: rework events

The mozilla webplugin events do not support arguments and expose all events available in libvlc. Most
of these events are not usefull for the webplugins and not being able to pass arguments is another limiting
issue. This patch addresses both problems at the same time.

The mozilla webplugin limits supports to the libvlc_MediaPlayer* events just like the ActiveX webplugin does.
These events are usefull in the context of a webplugin.

Ommit the 'libvlc_' prefix from the libvlc_MediaPlayer* events to obtain the events name that must be
used from JavaScript to listen on the event. Example:

- libvlc_MediaPlayerOpening becomes 'MediaPlayerOpening'
- libvlc_MediaPlayerNothingSpecial becoms 'MediaPlayerNothingSpecial'

Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>

Conflicts:

	projects/mozilla/vlcplugin.cpp
	projects/mozilla/vlcplugin.h

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb12c0f13bc6a3bb1fd7724e97b034a8aeaf691c
---

 projects/mozilla/control/npolibvlc.cpp  |   24 ++-
 projects/mozilla/control/nporuntime.cpp |    1 -
 projects/mozilla/vlcplugin.cpp          |  385 +++++++++++++++++++------------
 projects/mozilla/vlcplugin.h            |  115 +++++-----
 projects/mozilla/vlcshell.h             |    4 +-
 5 files changed, 311 insertions(+), 218 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=bb12c0f13bc6a3bb1fd7724e97b034a8aeaf691c


More information about the vlc-commits mailing list