Multimedia
Multimedia
Multimedia
Multimedia means that computer information can be represented through audio, video,
and animation in addition to traditional media (i.e., text, graphics drawings, images).
The support for sounds, animations, and videos is handled in different ways by various
browsers. Some multimedia elements is supported, and some requires an extra helper program (a
plug-in) to work.
Multimedia Formats
Multimedia elements (like sounds or videos) are stored in media files. The most common
way to discover the type of a file, is to look at the file extension. When a browser sees the file
extension .htm or .html, it will treat the file as an HTML file, the .css extension indicates a style
sheet file. Pictures are recognized by extensions like .gif, .png and .jpg.
Multimedia files also have their own formats and different extensions
like: .swf, .wav, .mp3, .mp4, .mpg, .wmv, and .avi.
1
RealVideo was developed by Real Media to allow video streaming with low
.rm
RealVideo bandwidths. It is still used for online video and Internet TV, but because of
.ram
the low bandwidth priority, the quality is also low.
.swf Flash was developed by Macromedia. Flash requires an extra component to
Flash
.flv play in a browser.
MPEG, developed by the Moving Pictures Expert Group, used to be the most
.mpg
MPEG popular video format on the Internet. It used to be supported by all major
.mpeg
browsers, but it is not supported by HTML5.
MP4 is the upcoming format on the internet. It is supported by all major
MPEG-4
.mp4 browsers in HTML5. YouTube recommends using MP4, and it is commonly
or MP4
used in newer video cameras and TV hardware.
Sound Formats
MP3 is the newest format for compressed recorded music. The term MP3 has become
synonymous with digital music. If your website is about recorded music, MP3 is the best choice
Adobe flash player is freeware software for viewing multimedia, executing rich Internet
applications, and streaming video and audio, content created on the Adobe Flash platform.
Flash Player can run from a web browser (as a browser plug-in) or on supported mobile
devices, but there also exist versions running directly on an operating system intended both for
regular users and developers.
2
Best Way to Play Audio or Video in HTML
The best way to embed audio and video in a web page is to use the <audio> and <video>
element.
<object> Element
The <object> element defines an embedded object within an HTML document. It is used
to embed plug-ins (like Java applets, ActiveX, PDF, and Flash) in web pages. It can also be used
to embed another webpage, or web content like images, into HTML documents.
The text between <object> and </object> is displayed if the browser doesn't support the
tag. <param> tag is used to pass parameters to the plug in.
Using Plug-ins
A plug-in is a small computer program that extends the standard functionality of the
browser. Plug-ins can be added to HTML pages using the <object> tag.
The <object> tag can also define a container for external (non-HTML) content.
Following is the example of object tag with mp3 file.
Eg.
<audio controls>
</audio>
3
The <object> tag tag can also define a container for external (non-HTML) content. The
following HTML tag displays a Flash video embedded in a web page
Example:
Html example:
<html>
<head>
<title>Multimedia</title>
</head>
<body>
<center>
<br>
<br>
<audio controls>
<source src="Race Gurram.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio><br><br>
</object>
</video>
</body>
</html>