Site hosted by Angelfire.com: Build your free website today!

AUDIO & VIDEO IN GENERAL

 

.

 

AUDIO&VIDEO - In General...

1. Audio
 

The most usual sound files have extensions as: *.WAV (windows Audio File), *.MID (Midi File) and *.MP3 (MP# File). The list of the most usual cases of applying sound in your page is the following:

 - as a background sound (plays once or permanently while the page is opened); 
 - sound appears when an image or button is clicked;
 - showing sound player start the play automatically or clicking on "Play" button.


In IE 4/5 and NN 4/5 the situations in case 1 was similar (not the same code) and very simple. You had to use <BODY> tag in IE as following:

<body bgsound="myFile.mid">
and in NN <EMBED> tag as following:
<EMBED SRC="myFile.mid" AUTOSTART=FALSE LOOP=FALSE WIDTH=145 HEIGHT=55 ALIGN="CENTER"></EMBED>

As for the case 2 you just could make similar script for both of browsers using <A> tag:

<A HREF="file:///C:/MyFolder/FileName.wav">Click To Listen!</A>

So, in the 6-th version situation became a little bit more complicated and to enable sound you have to put sound Plug-ins in your HTML code. The most general code looks like this:

 


   

Explanations: if you understand all the attributes of the <EMBED> tag then you are able to regulate with them as you wish in all you particular cases.
 - So SRC must have the complete path to the file location;
 - width and height parameters will give you how big is the picture of the player on your page
   (make  them both zero to hide it);
 - DON'T change the plaginspage and name attributes!; 
 - the most important attributes are autostart and clicktoplay: if autostart is 0, 

    then set clicktoplay to 1;
 - with all the rest you can manipulate as you wish. For example autorewind means 
    will the file be rewind back to the beginning after the end of it.

 

 
2. Video

The situation with video applications is very similar to the previous one. The most often files type for presentation are *.WMV (Windows Media Video), *.AVI (Windows Video File) and *.MOV (Move File very popular since this is the format in modern digital cameras). Here is the example for the first 2 file types for Windows Media Player from the Microsoft company:

Since Windows Media Player do not support *.MOV files the plug-ins must be used from the Apple company for QuickTime player. The code looks like this:

 

 

 

 

Explanations: As you can see codes are very similar except that parameters' values in the first case are designated with "1" or "0" as Boolean but in the second one as "true" and "false". I am sure you'll be able to find similarity with audio code and make the necessary manipulations to fit your desire! That's why I do not provide any further explanations on this case :)
 

On the next pages you'll find examples how it is possible to use and manipulate with sound and video files. Enjoy it! Click&Copy the code from the pages! Make your Web sites more attractive to the potential users!