Attribute for <EMBED ...>
MASTERSOUND
<EMBED ...>| Usage Recommendation |
|---|
Only use this attribute if you also use the NAME |
MASTERSOUNDNAME
MASTERSOUNDMASTERSOUND<EMBED ...>CONTROLS
Consider the situation where we want to have the play button, pause button, stop button and volume lever all in different cells of a table, but they all control one sound. We could do this with the following (lengthy) code:
<TABLE BGCOLOR=RED BORDER>
<TR ALIGN=CENTER>
<TD><EMBED
SRC="../graphics/sounds/1812over.mid"
NAME="SoundGroup"
WIDTH=34 HEIGHT=23
CONTROLS=PLAYBUTTON
MASTERSOUND
><BR>Play</TD>
<TD><EMBED
SRC="stub1.mid"
NAME="SoundGroup"
WIDTH=34 HEIGHT=23
CONTROLS=PAUSEBUTTON
><BR>Pause</TD>
<TD><EMBED
SRC="stub2.mid"
NAME="SoundGroup"
WIDTH=34 HEIGHT=23
CONTROLS=STOPBUTTON
><BR>Stop</TD>
<TR ALIGN=CENTER>
<TD COLSPAN=3 ALIGN=CENTER><EMBED
SRC="stub3.mid"
NAME="SoundGroup"
WIDTH=74 HEIGHT=20
CONTROLS=VOLUMELEVER
><BR>Volume</TD>
</TR>
</TABLE>
This would create this set of sound controls:
Notice several things about using MASTERSOUND
- Every sound
in the group must use the<EMBED ...> attribute, and they must all have the same name. If you use theNAME attribute, even for just one soundMASTERSOUND , you must use<EMBED ...> .NAME - One and only one of the sound
's must have the<EMBED ...> attribute.MASTERSOUND - Each
uses the<EMBED ...> attribute to indicate a different type of sound control.CONTROLS - Only the
tag needs to point to the sound file, but they must all point to some sound file of the same type so that the browser knows all of theMASTERSOUND 's are of the same type. Netscape recommends that all<EMBED ...> 's in the group beside the<EMBED ...> one point to "stub" files. Stub files are dummy files which aren't really sound files at all, but just text files one character long (all of the stub files used above consist of a single 'x'). The browser never reads the stub files, but it sees that they are of the same type of file as theMASTERSOUND file.MASTERSOUND
The use of MASTERSOUNDMASTERSOUND
Copyright 1997-2002 Idocs Inc.
