|Only use this attribute if you also use the |
NAME attribute and the embedded object is a sound
MASTERSOUND, which only works with Netscape, is required if you are embedding a sound and if you use the
MASTERSOUND is also for the unusual situation where you would like to spread the controls for a single sound around different places on the page.
MASTERSOUND allows several
<EMBED ...>'s to control a single sound. This is usually done in conjunction with the
CONTROLS attribute so that one object displays the volume control, another the start button, another the pause button, etc.
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>
<TD COLSPAN=3 ALIGN=CENTER><EMBED
This would create this set of sound controls:
Notice several things about using
- Every sound
<EMBED ...> in the group must use the
NAME attribute, and they must all have the same name. If you use the
MASTERSOUND attribute, even for just one sound
<EMBED ...>, you must use
- One and only one of the sound
<EMBED ...>'s must have the
<EMBED ...> uses the
CONTROLS attribute to indicate a different type of sound control.
- Only the
MASTERSOUND 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 the
<EMBED ...>'s are of the same type.
Netscape recommends that all
<EMBED ...>'s in the group beside the
MASTERSOUND 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 the
The use of
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of
the Open Content License and the Open Publication License.
Contents may be redistributed or republished freely under these terms so long as credit to the original creator and
contributors is maintained.
MASTERSOUND as a multi-control interface has been a confusing addition to HTML, but to make matters worse it doesn't even work very well in Netscape. There have been consistent problems with the controls appearing not as buttons or sliders but as empty gray boxes. Microsoft has not seen fit to waste its time copying Netscape's