The Leader in Secure Video Delivery Software
Home

Changing Clipstream™ Audio options by editing applet code
You can change the way a Clipstream™ Audio applet plays by adding, removing or adjusting lines in the applet code by using a web development program or text editor. In this page you will learn what a parameter is, how to adjust it, delete it, and add a new parameter.

Requirements:
  • Existing Clipstream™ Audio encoded files
  • A web development program or text editor*

    *WARNING: Do NOT edit using Microsoft Word as it introduces proprietary code that could prevent your web page from working properly
About Parameters
Clipstream™ Audio options (also called "switches") are controlled through applet lines called parameter lines. You can find them within the applet code by scrolling down and indentifying any line beginning with:

<PARAM and ending with the tag close >

An entire parameter line looks like this:

<PARAM NAME="AutoPlay" VALUE="false">


The NAME indicates what parameter it is switching and the VALUE indicates how that parameter is switched. Parameter lines only work with Clipstream™ if they are within the applet tags.

Adjusting an existing parameter

To adjust an existing parameter, change the value. Follow the example below to do this for AutoPlay.
  1. Find an existing Clipstream™ Audio applet code in the source.
  2. Scroll down to the AutoPlay parameter.

    <PARAM NAME="AutoPlay" VALUE="false">
  3. Block out the word "false" between the quotations and type "true".

    It should now look like this:

    <PARAM NAME="AutoPlay" VALUE="true">
  4. Save the page and view it in your browser.

    Once the page loads you should hear the audio file.

Deleting a parameter
You can add a new parameter by simply pasting a new parameter line anywhere among the existing parameters lines.

  1. Find an existing Clipstream™ Audio applet code in the source.
  2. Scroll down to the AutoPlay parameter.

    <PARAM NAME="AutoPlay" VALUE="false">
  3. Block out and delete the entire line

    -or-

    comment it out like this:

    <!-- PARAM NAME="AutoPlay" VALUE="false" -->

    Note: Commenting means that you are telling the browser to ignore this line of code. You do this so that you have the option of activating that line in the future by removing the !-- and --.

  4. Save the file and open it up in your browser.

    By default the audio will play. This is because by default Clipstream™ Audio wants to automatically play its files. By removing that parameter (which was set to false) you are removing that instruction not to play it automatically.

Adding a new parameter
You can add a new parameter by simply typing in (or pasting) a new parameter line anywhere among the existing parameters lines.

  1. Find an existing Clipstream™ Audio applet code in the source.
  2. Go to any point after a PARAM line. Press ENTER to create a new line.
  3. Type the following (or paste it from another applet):

    <PARAM NAME="AutoPlay" VALUE="false">

  4. Save the file and open it up in your browser.

    Once the page loads the audio will not play unless the user specifically chooses to click the play button on the applet.

Choosing from existing parameters
Now that you know how to adjust, delete and add new parameters, please look at the page of existing parameters to see all the different ways you can control the way Clipstream™ Audio will play from your web page.

Related topics:

Go to Java.com Go to dsny.com