• Jean-Paul Saman's avatar
    activex: implement async events handling for JavaScript · 427a6f91
    Jean-Paul Saman authored
    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's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
    427a6f91
connectioncontainer.cpp 13.3 KB