Embedding Sound Files

File Sizes   Sounds Index

Here is an embedded RealPlayer and an RM file (72 KB):

The embedded RealPlayer above combines both the <OBJECT> tag and the <EMBED> tag. You can copy the code if you View Source.

Detailed specifications for the parameters used are at Real.com. Go to the section titled "Web Page Embedding." This extensive reference also includes JavaScript methods for embedded RealPlayers.

Other resources:
For details about the EMBED and OBJECT tags, see Netscape's HTML Tag Reference. (Look for "Applets and Plug-ins.".)

See Apple's Quicktime site for EMBED specifications related to the QuickTime player. Another page discusses the OBJECT tag for QuickTime. Here is a QuickTime player that combines both the <OBJECT> tag and the <EMBED> tag. and plays an MP3 file (51 KB):

Specifying TYPE in the EMBED tag:
Failure to do this will result in one of those "broken plug-in" graphics in most cases, even if the user has the necessary plug-in installed.

  • AIFF: TYPE="audio/x-aiff"
  • MIDI: TYPE="audio/x-midi"
  • MP3: TYPE="audio/x-mpeg"
  • RealMedia: TYPE="audio/x-pn-realaudio-plugin"
  • WAVE: TYPE="audio/x-wav"

Using the OBJECT tag:
The OBJECT tag is the one that's in the official HTML 4.01 spec (do a Ctrl-F for "object"). If you have a program that writes the OBJECT tag for you (for example, Flash does this), the tag will work fine. But trying to insert an OBJECT tag manually can be tricky. Make sure you have the correct CLASSID for the player you intend to embed using the OBJECT tag.