The Leader in Secure Video Delivery Software
Home

Embedding Clipstream™ Audio as a .js include
On April 11th, 2006, Microsoft responded to the recent Eolas patent ruling by issuing a patch that changes the way Internet Explorer presents embedded plugins for audio, video and animation (other browsers are not affected). The Clipstream™ applet (and any other embedded media) can continue to be presented in a page through the use of the following .js (JavaScript) include method.

How does Clipstream™ play without this method?
The applet will load normally but a box will appear around it. The user can press space-bar or right click to enable the applet. Then the applet will be allowed to function normally.

-or-

The user can click on the button panel *twice* and it will play.

AutoPlay works as normal
If the applet is set to autoplay, then the applet will play normally as this does not require user activation.

The Method
Follow the steps below to 1) Convert regular applet code to javascript lines. 2) Save it as a .js file. 3) Include that file as a .js link.

Prerequisites
  • text or web page editor
  • existing Clipstream™ Audio applet and generated files
  • ability to upload files to a web server
Step 1: Copy and paste applet code into new document
  1. View the source of the generated Clipstream™ Audio page and find the Clipstream™ Audio applet.
  2. Highlight all of the applet code including the <applet tags. Copy it.
  3. Create a new blank document in a text editor or web page editor.

    Note: Make sure it has no code whatsoever. No body tags. No html tags. A completely blank page.

  4. Paste your selected Clipstream™ Audio applet code in that new page.
Step 2: Make each line a JavaScript line.
  1. Launch the Find and Replace function in your text editor.
  2. Replace every

    <

    with

    document.writeln( " <

  3. Then replace every

    >

    with

    > ")

    After this is done the lines in the applet code will look like this:

    document.writeln( " <PARAM NAME='PanelLayout' VALUE='PSRMC'> ");

  4. Save the file with the extension .js.

    ex. myAudiofile.js
Step 3: Create a link in the target page that references the .js.
  1. Upload your .js file to your webserver and take note of its URL location.
  2. Open up the code for the target page where you want the Audio to appear.
  3. Write this line of code:

    <SCRIPT LANGUAGE="JavaScript" SRC="[URL of your .js file]"></script>
  4. Save and upload.

    When you view the page in your browser it should display as if you had the applet normally pasted in the page.

    NOTE: Since this requires javascript enabled, any browsers that do not enable it will not see this.
Related topics:

Go to Java.com Go to dsny.com