Adding multimedia to pages

A reference for multimedia formats and codecs is www.fourcc.org/indexcod.htm.
Video Formats
QuickTime (.mov)
Windows Media including AVI (.avi) and DirectShow (.asf)
Real Audio/Video/Media (.rm)
MPEG (.mpeg or .mpg)
Flash video (.swf or .flv)
Adding video to web pages
There are two ways to place a movie on a web page; one, using the <A>, tag required a user to click a link while the other, using the <Embed> tag loads automatically. Here is a sample of how to use the <A>, tag coding:
<A HREF="media/cs217.mpg">Class Video </A>
And here is the link to download the Class Video (4.6 MB). Now, here is a sample of how to use the <Embed>, tag coding:
<EMBED src="media/sun.mov">
A Sample that uses the <Embed> tag. The same QuickTime movie using ActiveX controls.
An additional sample: a Real media video.
Audio Formats
WAVE (.wav)
MIDI (.mid)
m-law (.au)
MPEG audio(.mp3)
Adding audio to a web page
There are three basic ways to add audio to a web page, the <A> tag, the <Embed> tag (as we saw above), and a <BGSound> tag. An attribute can be added to the <Embed> tag to hide the controller bar. Here is a sample of the code that can be used.
<A HREF="media/song.wav">A nice song</A>
<EMBED src="media/song.mid">
<EMBED src="media/song.mid" AutoStart="True" Hidden="True" Loop = "True">
<BGSound src="media/song.mid" Loop = "infinite">
The following pages (if they all work) illustrate each code: (You might check what happens in different browsers.)
Link Sample, Embed tag sample, Embed tag with Hidden "on" sample, and BackGround sound sample.