(^430) Chapter 11 Web Multimedia and Interactivity
Figure 11.2
The Google Chrome
browser correctly
renders the
multimedia object
Review Figure 11.2. Notice that the Chrome browser correctly renders the
tag and displays a media player for the MP3. However, even though the XHTML is
valid and satisfies W3C recommendations, Internet Explorer does not properly config-
ure the object. Don’t worry, there is a solution for this issue—configure another
tag that only Internet Explorer will process. This technique is described by
Elizabeth Castro in an article at [http://www.alistapart.com/articles/byebyeembed.](http://www.alistapart.com/articles/byebyeembed.)
Internet Explorer requires the classidattribute (to indicate the player’s ActiveX con-
trol) and its associated codebaseattribute in order to properly render an tag
configured for audio or video files. The code to play an audio file with QuickTime
within Internet Explorer is shown below:
type="audio/mpeg"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab" >
Castro describes a technique in her article to use BOTH tags along with con-
ditional comments (which only Internet Explorer follows) to direct non-IE browsers to
The basic XHTML code to use the tag to embed a sound loop in a Web page
follows:
title="Music Sound Loop">
A sample page using this tag can be found in the student files at
Chapter11/musicbasic.html. See Figure 11.2 for a screenshot of this page displayed in
the Internet Explorer and Chrome browsers. If you see warning messages when the
tag is used to play media, consult your network administrator or lab support
staff for recommended security settings and/or plug-in installation.