You must make some minor code changes to the HTML page that loads the client viewer to
add the ViewONE Document Streaming Server Module.
About this task
You must ensure that the mayscript attribute is present in the applet
definition so that the client can correctly obtain the browser's cookies. The
mayscript attribute enables the applet to use JavaScript to communicate with the browser.
If the mayscript attribute is omitted, you see errors in the client's Java™ console. In addition, the ViewONE Document Streaming Server Modulecannot stream documents from a document repository that
requires a login.
Procedure
To configure document streaming:
- Edit the HTML page that loads the viewer applet to add the following line to your applet
definition.
<applet mayscript="true" name="IBM Daeja ViewONE" ...
- Edit the viewer HTML page or JavaScript to add the
ViewONE Document Streaming Server Module URL. For example, add the HTML parameter as
follows.
<param name="StreamerURL" value=http://localhost:8080/viewone/v1files/streamer>
For example, add the JavaScript parameter as
follows.ViewONE.setStreamerURL("http://myStreamerHost/Streamer");
- Optional: Edit the viewer HTML page or JavaScript to disable
streaming or to enable users to enable streaming as needed. By default, streamerEnabled parameter is set to true. To disable
streaming, add the HTML parameter as
follows.
<param name="streamerEnabled" value="false" />
For example, add the JavaScript parameter as
follows.ViewONE.setStreamerEnabled(false);