Idocs Guide to HTML

Attribute for <EMBED ...>
MASTERSOUND

Usage Recommendation
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 NAME attribute.

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>
<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:


Play

Pause

Stop

Volume

Notice several things about using MASTERSOUND:

The use of 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 MASTERSOUND.

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.