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