]> git.sesse.net Git - vlc/commit
activex: implement async events handling for JavaScript
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 17 Feb 2010 22:35:12 +0000 (23:35 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 18 Mar 2010 10:16:02 +0000 (11:16 +0100)
commit427a6f917a59399de7f6822b345d02f1b38544fb
treed7617b131d1034a62ddf4617d28bc7139c92285e
parentb7d39d41515a9ecff1b34c0bb4cec7f4ca4e454e
activex: implement async events handling for JavaScript

Events that do not originate from within the ActiveX JS context (which is a COM context)
cannot cross into ActiveX/COM context. All events received from libvlc are in a different
thread context then the ActiveX/COM code. Thus from a libvlc event handler callback it is
not possible to call into the ActiveX/COM context.

To solve this issue a seperate thread is created that manages sending of all events for
the ActiveX webplugin (including events from libvlc). All events are by default routed
through the GlobalInterfaceTable (GIT) which takes care ActiveX/COM calls that cross
different thread context in the ActiveX/COM world.

Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
projects/activex/connectioncontainer.cpp
projects/activex/connectioncontainer.h