How Do I Set Up a Multimedia Player on My Website?
Multimedia refers to any form of media, whether it be a picture, sound, music or video. All forms of media can be implemented into webpages by using inline multimedia or by using a helper application.
-
Formats
-
Web browsers look at file extension to determine how to handle the file. If your browser is told to display a movie, picture or sound the file may contain a .mpg, .jpg, or .mp3 extension, respectively, and the browser displays the appropriate media.
Inline
-
When multimedia is included as part of a webpage, it is called inline multimedia, and is played automatically when the page is opened. Note that many people find inline sound or video annoying.
-
Helpers
-
A helper, or plug-In, is another way to display multimedia launched by browsers. Either the <embed> or <object> HTML tag can be used to launch a helper application. Note that the file must be in the same directory as the HTML page, such as in "My Documents."
The <embed> tag
-
The <embed> tag can be used to embed multimedia into a webpage. For example, <embed src="music.mid" /> embeds the MIDI file "music.mid." The <embed> tag is deprecated, and should be avoided if possible.
The <object> tag
-
Objects also embed multimedia elements into a page. The following is an example of an <object> tag from w3schools displaying an AVI video file:
<object data="video.avi" type="video/avi" />
Hyperlink
-
To make the example above a link to be opened by a helper, type the following code:
<a href="video.avi">play video</a>
-