browser finds <embed> tag in HTML page
-
- libWvDecoder.so (plugin) is started
|
libWvDecoder.so calls use_WvDecoder(NPN_GetJavaEnv())
-
- WvDecoder.class is instantiated in decoder object
|
browser finds <applet> tag
-
- WvViewer.class is imported, and instantiated in viewer object
|
viewer calls Java Script: JSObject.getWindow(this).
-
.getMember("document").getMember("WvDecoder")
-
- decoder is returned to viewer
|
Communication is established:
-
- viewer can calls native methods from libWvDecoder.so via decoder,
-
- and vice versa - plug-in can calls any applet method.
|