Panix - Public Access Networks Corporation


Embedded Media Examples

Embedding multimedia files into a web page causes a plugin to be loaded into the page itself. While this can add a more professional look to a web page and access to the rest of the content while the media file is playing, it also has some drawbacks, including slower page loading and slightly more complicated HTML.

A wav file would look as follows when embedded:

The HTML code to produce this is:

<EMBED SRC="sample.wav" AUTOSTART="false" WIDTH=200>
This method can be used with many multimedia types, although the options that modify the <EMBED> tag vary depending upon which plugin the media type requires.

For a more complete list of options for the <EMBED> tag, type "embed tag" into your favorite search engine or go to this tutorial.

An embedded Real Audio File is slightly more complicated. To embed a Real Audio file to be streamed, create a metafile (ram file) following the examples in the Streaming Multimedia section. The following code will embed the file into the web page:

<EMBED SRC="sample2.ram" TYPE="audio/x-pn-realaudio-plugin" AUTOSTART="false" WIDTH=400>
producing:

Another format that can be embedded in a web page is Quicktime. Because Quicktime is usually presented in a download-and-play format, its embedding is very similar to the wav file's. The embedded movie looks like this:

The HTML code to produce this is:

<EMBED SRC="sample.mov" WIDTH=320 HEIGHT=256 AUTOSTART="false">

Apple provides more information on Quicktime embedding at http://www.apple.com/quicktime/authoring/embed.html.


webmaster@panix.com
© Copyright 2001, Public Access Networks Corporation
[ Panix Home ] [ Panix Help System Index ] [ Streaming Media FAQ ]