AUDIO & VIDEO FOR WEB PAGES

Description

EMBEDDING AUDIO OR VIDEO

Using the embed tag:

Embedding allows you the end user to see the player(e.g. Quicktime, Realplayer, Windows Media Player). Unless you specify the browser will use the default player, I prefer to specify which player so that the size of the player always displays as I want on the page, I have found that Quicktime works best in all browswers and platforms. The following examples specify the Quicktime player:

For Quicktime the height should be 16 pixels higher than the actual video size. Here is a simple code for a quicktime movie that is 240 x 320:

Height and width determine the size of the player displayed

For audio, the height should be set to 16 and the width set to a convenient size for your page. If you do not wish to display the player set the height and width to 2.

Other parameter values can be specified, eg play_loop=true, or controls=false Parameters are specific to each player, for more info see: The Embed Tag

The embed tag is no longer supported by some browsers, it is now common practice therefore to use the object tag.

Using the object tag:

The classid tells the end user’s browser to use Quicktime player.

The problem is that older browsers do not support the object tag so it is a good idea to sandwich an embed tag inside an object tag

Here is the same tag with an embed tag enclosed:

For more info see: Zap’s Music on the Net Tutorial