Functions | |
| function | get_ns_plugin () |
Variables | |
| var | xpi_source |
| Plug-in URL. | |
| var | xpi_name |
| Plug-in Name. | |
| var | xpi_version |
| Plug-in Version Number. | |
| var | np_mime_type |
| Plug-in MIME-Type. | |
| function get_ns_plugin | ( | ) |
Loading Function
Find this value in the file `plugin-info.txt`.
Change REPLACE_ME_WITH_INTERFACE_NAME to the 'netscape plug-in interface' string.
// nsIOn2Publisher is On2 Flix Publisher's interface name function get_ns_plugin() { return document.flixe.nsIOn2Publisher; }
| var xpi_source |
Location (URL) of the On2-provided binary plug-in for Mozilla-based browsers (e.g. Firefox). Note that your server's filesystem is probably case-sensitive, so capitalization matters.
var xpi_source = fp_scheme + fp_hostname + "/plugins/npon2publish.xpi";
If your web host requires you to host the plug-ins and images on seperate servers, set xpi_source to a complete URL.
var xpi_source = "http://example.com/plugins/npon2publish.xpi";
| var xpi_name |
The value of the xpi_name variable is displayed in the confirmation dialog box when a user is prompted to allow plug-in installation.
xpi_name is for display purposes only. It is used only in the installation confirmation dialog, and should be set to the name you wish users to use when referring to your flix publisher plug-ins.
var xpi_name = "XYZ Widget";
| var xpi_version |
Find this value in the file `plugin-info.txt`.
Note that Mozilla-compatible plug-in version numbers include periods.
var xpi_version = "3.0.5.0";
| var np_mime_type |
Find this value in the file `plugin-info.txt`.
// On2 Flix Publisher's mime-type var np_mime_type = "application/x-on2publisher-plugin";