Working
with MULTIMEDIA contents:
We can make our web pages more
interactive using multimedia items. We can insert (add) multimedia items in our
web pages. Multimedia items may be Image, Sound,
Moving Pictures, Animated objects, Video clips,
etc. Here we will discuss about Audio and Video formats.
SOUND/AUDIO
FORMATS
|
|
Type
|
Specification
|
.WAV
|
By
Microsoft & IBM
|
.MPEG
|
Moving
Pictures Experts Group (also called MPG)
|
.MP3
|
Moving
Pictures version 3
|
.MIDI
|
Musical
Instrument Digital Interface
|
.AIFF
|
Audio
Interchange File Format by Apple Computer
|
.SND
|
Short
form of Sound by Macintosh, Apple computer
|
.AU
|
Short
form of Audio
|
VIDEO
FORMAT
|
|
Type
|
Specification
|
.AVI
|
Audio
Video Interleave
|
.MPEG
|
Moving
Pictures Experts Group (also called MPG)
|
.MP4
|
Moving
Pictures version 4
|
.DAT
|
Digital
Audio Tap
|
.MKV
|
Matroska Video
- an open source video format
|
.3GP
|
Third
Generation Partnership Project (3GPP)
|
QUICKTIME
|
By Apple
computer for Macintosh
|
Shockwave
|
Macromedia
Director
|
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
<BGSOUND>
Tag: This tag is used to play a background
sound in web pages. Sound format may be .AU, .WAV, .MP3, etc. Only start tag is
required and supported by all the browsers.
Attribute
|
Specification
and Value
|
SRC
|
Source
of the sound file.
|
LOOP
|
Sets
to positive integer for loop (By default infinite
loop)
|
Example:
We can select a sound file as available in our computer with an appropriate
path.
<HTML>
<HEAD>
<TITLE>Working
with Multimedia </TITLE>
</HEAD>
<BODY BGCOLOR=“AQUA” TEXT=“GREEN”>
<H1>
Background Sound</H1>
<BGSOUND
SRC=“MySong.MP3”>
</BODY>
</HTML>
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
<EMBED>
Tag: It is used to play multimedia inline Sound
and Video. Only start tag is required. It provides full control of media player
to the user like play, pause, stop, etc.
Attribute
|
Specification
and Value
|
SRC
|
Source
of the Sound or Video file.
|
HEIGHT/WIDTH
|
We
can set Player Height/Width in pixels
|
ALIGN
|
Left,
Right, Center
|
HIDDEN
|
TRUE
/ FALSE
Note:
It can be used like <BGSOUND> tag using HIDDEN attribute with TRUE
Value.
|
Example:
We can select a sound file as available in our computer with an appropriate
path.
<HTML>
<HEAD><TITLE> Working with
Multimedia </TITLE></HEAD>
<BODY BGCOLOR=“AQUA” TEXT=“GREEN”>
<EMBED
SRC=“MySong.MP3” Height=“200” width=“300”>
<BR>
<EMBED SRC=“Comedy.mpg”>
</BODY>
</HTML>
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
Inline
Video: We can play any video
clip using “DYNSRC” attribute of <IMG> tag. Only start tag is required
and supported by all the browsers.
Example:
<IMG DYNSRC =“C:\Videos\Comedy.MPG”>
~ ~ ~ ~ ~ ~ ~ * ~ ~ ~ ~ ~ ~ ~
Video Link:
Video Link:
No comments:
Post a Comment