Download presentation
Presentation is loading. Please wait.
Published byPatricia McCarthy Modified over 9 years ago
2
Embedding Multimedia in Web Pages Multimedia is a popular buzzword for sound, motion video, and interactive animation. Some problems or obstacles for anyone who wants to include audiovisual material in a Web page a few years ago. There are many incompatible multimedia file formats from which to choose, and none has yet emerged as a singular industry standard. Some people do not have Internet connections fast enough to receive high-quality audiovisual data without a long wait. HTML tags for including multimedia in web pages have been notoriously inconsistent; XHTML offers a standard approach that is helping to set everything straight.
3
Placing Multimedia Content on a Web Page The following sections show you how to add some audio and video to a web page in two ways: The "old way" for maximum compatibility with all web browsers, including very old ones The "new way" that works only with the latest versions of web browsers, but serves as the official standard technique for the present and future
4
Putting Multimedia on a Web Page The simplest and most reliable option for incorporating a video or audio file into your Web site is to simply link in with, exactly as you would link to another HTML file. Play the lobster video. When the user clicks the words Play the lobster video, the lobstah.avi video file is transferred to her computer. Whichever helper application or plug-in she has installed automatically starts as soon as the file has finished downloading. If no AVI-compatible helper or plug-in can be found, the Web browser offers her a chance to download the appropriate plug-in or save the video the video on the hard drive for later viewing.
5
Putting Sound in a Web Page The tag enables you to place any type of file directly into your Web page. For media to appear on the Web page, however, every user must have a plug-in or OLE-compatible helper application that recognizes the incoming data type and knows what to do with it. The media players that come bundled with Internet Explorer and Netscape Navigator can handle most common media types, including WAV, AU, MPEG, MID, EPS, VRML, and many more. Many other plug-ins are also available from other companies to handle almost any type of media file.
6
Putting Sound in a Web Page The following line of HTML would embed a sound clip named hello.wav and display the playback controls at the current position on the page, as long as visitors to the page have a WAV compatible plug-in or helper app. Like, the tag can take align, width, and height attributes. The src, width, height and align attributes are interpreted by the browser just as they would be for a still image. The tag also enables you to set any number of optional parameters, which are specific to the plug-in or player program.
7
Putting Sound in a Web Page autostart, loop, and hidden are not standard attributes of the tag, so the browser simply hands them over to the plug-in program to interpret. autostart=“true”, loop=“true”, and hidden=“true” are specific to the LiveAudio plug-in that comes built-in to Netscape Navigator.
8
Putting Sound in a Web Page The HTML page below demonstrates the use of with a video clip in the Windows AVI(Audio-Video Interleave) format. <img src=“3dtetra.jpg” border=“0” align=“left” width=“160” height=“120” vspace=“10” hspace=“20” />
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.