| Multimedia, whats that? |
Actually, multimedia is one of those buzz words that is a little
vague. Multimedia just means more than one type of media (or medium) is used to present
information. So if you have pictures and text, you have multimedia. More commonly, people
think of multimedia as including sound and/or videos which is what we are going to look at
with this tutorial.
The first part to getting either sound files or video files (or for that matter,
pictures) to show up on your page is to find them. You can reference files on other people's
cites or store them on your own site. If you find something you like somewhere else use the
right click and save method (right click on the thing, choose save link as). You probably
already have some sound or video files on your computer (try going to start, find, and typing
"*.wav" in the box). Once the file is on your computer (or on a disk), use FTP to transfer the
file to your web page. Make sure you know where you put the file (on your grove account, it
needs to be within the public_html directory or in a subdirectory of public_html). For
further instructions and help with FTP see our Technical Info
section.
|
| . |
| . |
| Playing Sound Files |
| Sound files are actually pretty easy to put in your web page.
They use a tag called "embed" which works in a similar way to the <img> tag used by
pictures. Here is a simple exampe: |
| src="filename"--the name of the sound file to play |
| autostart=(true, false)--If true the sound file will start playing
as soon as it is loaded |
| border=(Number)--which creates a border around video |
| loop=(true, false, number)--which sets how many times a file
will |
| width=(number)--sets the width of the console in pixels |
height=(number)--sets the height of the console in pixels
For example |
| . |
| . |
| Playing Videos |
The key tag to putting video on your web page is also the
<embed> tag. This tag is used to "embed" a video into a web page. It looks (and
acts) nearly identically to the <embed ..> tag used for sound files. It has the attributes
the only difference being that the filename used as the value of the src attribute is now a
video file instead of a sound file.
Unfortunately, the browser problem mentioned regarding sound files is even a bigger
issue in videos. HTML really doesn't have a definitive way to play a video on every
system. One way around this is to make a link to the video instead of actually playing it on
the page. This is done with the good old <a ..> tag. For example, Video is a link to a video on our web
site. The code looks like
<a href="../lectures-text/uglywoman.mpeg">Video</a>
which is basically just the same as a regular link (by the way, you can do this with
sound files also). This gives the person looking at your page the option to view the video
(if their system is configured for it) or download the file for later viewing.
The most common video formats are mpeg, mpg, rm, avi, and ram. wmv, asf, and mov or
other relatively common standards. rm and ram are RealPlayer files and require the RealPlayer
software to play. mpeg, mpg, and avi are playable by the Windows Media Player that comes with
windows (though it may need to download additional software too, this stuff gets complicated).
|
| . |
| . |
| Get Behind the Wheel |
Now its your turn to Drive the Sound
(Actually, we have been having some problems with this part, just put the code in your
page if you want to test it)
<html>
<head>
<title>Sound Off (or actually Sound On!!)</title>
</head>
<body>
Now hear this!
<embed src="canyon.midi" height=10 width=200 autostart=true>
</body>
</html>
|
| . |