Google News
logo
Javascript Multimedia
JavaScript navigator object includes child object which is called as plug-ins. This object is basically an array, with one entry for each plug-in installed in browser.

Javascript Multimedia Example :
Here is an example, lists down all the plug-in installed in your browser:
<html>
<head>
<title>List of Plug-Ins Installed</title>
<style>
table,th,td{border:1px solid black;}
</style>
</head>
<body>
 
<table>
<tr>
    <th>Plug-in Name</th>
    <th>Filename</th>
    <th>Description</th>
</tr>
<script language="JavaScript" type="text/javascript">
for (i=0; i<navigator.plugins.length; i++)
{
document.write("<tr><td>");
document.write(navigator.plugins[i].name);
document.write("</td><td>");
document.write(navigator.plugins[i].filename);
document.write("</td><td>");
document.write(navigator.plugins[i].description);
document.write("</td></tr>");
}
</script>
</table>
 
</body>
</html>
Output :

Crome Browser

This is the output produced in Google Chrome browser :

Free Time Learning

Opera Browser

This is the output produced in Opera Browser :

Free Time Learning

Mozilla Browser

This is the output produced in Mozilla Firefox browser :

Free Time Learning

Internet Explorer

This is the output produced in Internet Explorer :

Free Time Learning

Video Formats

Multimedia files have Audio formats and different extensions like: .mpeg(or) .mpg, .avi, wmv, .swf, webm, .mp4 etc,.

Format File Description
MPEG .mpg
.mpeg
Moving Pictures Expert Group. The first popular video format on the web. Used to be supported by all browsers, but it is not supported in HTML5 (See MP4).
AVI .avi AVI (Audio Video Interleave). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers.
WMV .wmv WMV (Windows Media Video). Developed by Microsoft. Commonly used in video cameras and TV hardware. Plays well on Windows computers, but not in web browsers.
Flash .swf
.flv
Flash. Developed by Macromedia. Often requires an extra component (plug-in) to play in web browsers.
WebM .webm WebM. Developed by the web giants, Mozilla, Opera, Adobe, and Google. Supported by HTML5.
MPEG-4
or MP4
.mp4 MP4. Developed by the Moving Pictures Expert Group. Commonly used in newer video cameras and TV hardware. Supported by all HTML5 browsers. Recommended by YouTube. 

Audio Formats

Multimedia files have Audio formats and different extensions like: .mp3, .mp4, wma and .wav

Format File Description
MP3 .mp3 MP3 files are actually the sound part of MPEG files. MP3 is the most popular format for music players. Combines good compression (small files) with high quality. Supported by all browsers.
MP4 .mp4 MP4 is a video format, but can also be used for audio. MP4 video is the upcoming video format on the internet. This leads to automatic support for MP4 audio by all browsers.
WMA .wma WMA (Windows Media Audio). Developed by Microsoft. Commonly used in music players. Plays well on Windows computers, but not in web browsers.
WAV .wav WAV. Developed by IBM and Microsoft. Plays well on Windows, Macintosh, and Linux operating systems. Supported by HTML5.