You are on page 1of 1

The code will load the test.wav file, as well ask show a control panel on the page.

In addition to object
and param tags, notice that alt is used.

Param Tag
src – there are some browsers, like Internet Explorer, that need this attribute to understand where to
look for the file.
autostart – If set to “false”, the music will not start playing unless the user clicks the “Play” button in the
control panel of the embedded media player. If the autoplay attribute is set to “true”, however, the music
will start playing once the page finishes loading.
hidden – If set the “false”, the control panel will be visible. On the other hand, if the hidden attribute is
set to “true”, the control panel will not appear at all. Be careful when you do this because if the user does
not like the music and cannot stop it because there is no control panel, they might close the browser and
not returned to your site! The control panel will also automatically take the dimensions specified by the
browser (although the width and height attributes can resize this).

Videos
Video clips can be useful as online material because they can show us, among other things, situations in
life beyond everyday experience. Videos can also be useful to display medical procedures or tutorials for
software products. Video files have the same main disadvantages as audio files. Although most new
browsers come with video plugins preinstalled, they may also require other kinds of plug-ins once a video
file is loaded. Another consideration is that video files are usually large in size, and take a long time to
download.
Video Format Extension Description
This video format was developed by Microsoft. It is
Audio Video Interleave .avi
supported by all computers running Windows.
This video format was also developed by Microsoft.
The disadvantage is that it cannot be played by
Windows Media Format .wmv
non-Windows computer without an extra
component installed.
This video format is the most popular format on the
Moving Pictures Experts Group .mp3, .mpga Internet. It is cross-platform and is supported by
most browsers.
This video format was developed by Apple. This
Quicktime Format .mov format cannot be played on Windows machines
unless you install an extra component.
This video format was created by Real Media. It
Real Video Format .rm, .ram allows the streaming of video with low-bandwidth,
but quality is compromised.
This video format was created by Macromedia. This
Shockwave (Flash) .swf file format’s player comes preinstalled in new
versions of Internet Explorer.
Two situations of embedding videos in your HTML code will now be explored. One is embedding videos
from YouTube, and the other one, in embedding your own video.

Embedding YouTube Videos


This is the simpler of the two approaches, since you won't need to maintain the video and because the
site already solves compatibility issues that come with embedding a video.

You might also like