These views may be used many times on one Web page, with all the view instances controlling one sound file, or many sound files, depending on how the file is called in the HTML or JavaScript.
It is also important to remember that these controls can be called by other applets to do things like control the systems' universal volume.
SRC=[URL] - The URL of the source sound file.
AUTOSTART=[TRUE|FALSE] - Setting the value to TRUE allows the sound, music, or voice to begin playing automatically when the Web page is loaded. The default is FALSE.
LOOP=[TRUE|FALSE|INTEGER] - Setting the value to TRUE allows the sound to play continuously until the stop button is clicked on the console or the user goes to another page. If an INTEGER value is used, the sound repeats the number of times indicated by the integer.
STARTTIME=[MINUTES:SECONDS] - Use STARTTIME to designate where in the sound file you would like playback to begin. If you want to begin the sound at 30 seconds, you would set the value to 00:30 (implemented only on Windows 95, NT, and Macintosh).
ENDTIME=[MINUTES:SECONDS] - Use ENDTIME to designate where in the sound file you would like playback to end. If you want to stop the sound at 1.5 minutes, you would set the value to 01:30 (implemented only on Windows 95, NT, and Macintosh).
VOLUME=[0-100] - This value must be a number between 0 and 100 to represent 0 to 100 percent. This attribute sets the volume for the sound that is playing [unless the MASTERVOLUME (see NAME attribute below) is used, then this value sets the sound for the entire system]. The default volume level is the current system volume.
WIDTH=[# PIXELS] - This attribute is used to display the width of the console or console element. For the CONSOLE and SMALLCONSOLE, the default is WIDTH=144. For the VOLUMELEVER, the default is WIDTH=74. For a button, the default is WIDTH=37.
HEIGHT=[# PIXELS] - This attribute is used to display the height of the console. For the CONSOLE, the default is HEIGHT=60. For the SMALLCONSOLE, the default is HEIGHT=15. For the VOLUMELEVER, the default is HEIGHT=20. For a button, the default is HEIGHT=22.
ALIGN=[TOP|BOTTOM|CENTER|BASELINE|LEFT|RIGHT|TEXTTOP|MIDDLE|ABSMIDDLE|ABSBOTTOM] - This attribute tells Netscape Navigator how you want to align text as it flows around the consoles. It acts similarly to the IMG tag.
CONTROLS=[CONSOLE|SMALLCONSOLE|PLAYBUTTON|PAUSEBUTTON|STOPBUTTON|VOLUMELEVER] - This attribute defines which control a content creator wishes to use. The default for this field is CONSOLE.
HIDDEN=[TRUE] - The value for this attribute should be TRUE, or it should not be included in the EMBED tag. If it is specified as TRUE, no controls will load and the sound will act as a background sound.
MASTERSOUND - This value must be used when grouping sounds together in a NAME group. This attribute takes no value (it must merely be present in the EMBED tag), but tells LiveAudio which file is a genuine sound file and allows it to ignore any stub files. Stub files have a minimum length necessary to activate LiveAudio.
NAME=[UNIQUE NAME TO GROUP CONTROLS TOGETHER SO THAT THEY CONTROL ONE SOUND] - This attribute sets a unique ID for a group of CONTROLS elements, so they all act on the same sound as it plays. For example, if a content creator wishes to have one sound controlled by two embedded objects (a PLAYBUTTON and a STOPBUTTON), they must use this attribute to group the CONTROLS together. In this case, the MASTERSOUND tag is necessary to flag LiveAudio and let it know which of the two EMBED tags actually has the sound file you wish to control. LiveAudio ignores any EMBED(s) with no MASTERSOUND tag.
If you want one VOLUMELEVER to control multiple NAMEs (or the system volume), create an EMBED using the VOLUMELEVER CONTROL. Then set NAME to MASTERVOLUME.
To implement this feature, the Web designer must create a file like the following:
<SCRIPT LANGUAGE=SoundScript>
This file should be saved and named as a sound file (such as script1.aif). When the Play button is pushed, the URL you defined for the OnPlay function is loaded.
EXAMPLES OF
LIVEAUDIO
USES
To play a sound as a background sound for a Web
page:
<EMBED SRC="mysound.aif" HIDDEN=TRUE>
To have several CONTROLS controlling one sound file:
<EMBED SRC="mysound.aif" HEIGHT=22 WIDTH=37 CONTROLS=PLAYBUTTON NAME="MyConsole" MASTERSOUND>
<EMBED SRC="stub1.aif" HEIGHT=22 WIDTH=37 CONTROLS=PAUSEBUTTON NAME="MyConsole">
<EMBED SRC="stub2.aif" HEIGHT=22 WIDTH=37 CONTROLS=STOPBUTTON NAME="MyConsole">
<EMBED SRC="stub3.aif" HEIGHT=20 WIDTH=74 CONTROLS=VOLUMELEVER NAME="MyConsole">
To use a SMALLCONSOLE:
<EMBED SRC="mysound.aif" HEIGHT=15 WIDTH=144 MASTERSOUND CONTROLS=SMALLCONSOLE>
LIVECONNECT
LiveAudio is LiveConnect enabled. The following functions will work in JavaScript to control a loaded LiveAudio plug-in:
View some examples of using LiveAudio/LiveConnect methods.
Read an overview about LiveAudio features.
Corporate Sales: 415/937-2555; Personal Sales: 415/937-3777; Federal Sales: 415/937-3678
Copyright © 1996 Netscape Communications
Corporation
If you have any questions, please visit Customer Service.