]> git.sesse.net Git - vlc/commit
mozilla: rework events
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Fri, 30 Jul 2010 09:51:12 +0000 (11:51 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Tue, 7 Sep 2010 08:26:27 +0000 (10:26 +0200)
commitbb12c0f13bc6a3bb1fd7724e97b034a8aeaf691c
tree792e4233238c5c3f3973112ff12584d8ec9be170
parent5e07b00c3432b2dd79d6134cab6992afaabbca94
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@m2x.nl>
Conflicts:

projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.h
projects/mozilla/control/npolibvlc.cpp
projects/mozilla/control/nporuntime.cpp
projects/mozilla/vlcplugin.cpp
projects/mozilla/vlcplugin.h
projects/mozilla/vlcshell.h