•Using Multimedia on the Web
•Enhancing a Web Site with Sound, Video, and Applets
•Objectives
•Working with Multimedia
•Working with Audio
•Linking to an Audio Clip
•Embedding an Audio Clip
•Objectives
•Working with Video
•Linking to a Video Clip
•Embedding a Video Clip
•Using a Dynamic Source
•Supporting Non-Embedded Elements
•Objectives
•Introducing Java
•Working with Applets
•Creating a Marquee with Internet Explorer
•Working with the Object Element
•Working with Multimedia
•Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second
–Consider bandwidth when working with multimedia on a Web site
•Working with Multimedia
•Multimedia can be added to a Web page two different ways:
–External media is a sound of video file that’s accessed through a link
•Useful for a low bandwidth
–Inline media is placed within a Web page as an embedded object
•Working with Multimedia
•Working with Audio
•Every sound wave is composed of two components:
–Amplitude- the height of the wave. Amplitude relates to the sound’s volume (the higher the amplitude, the louder the sound).
–Frequency- the speed at which the sound wave moves. Frequency relates to sound pitch (high frequencies have high pitches).
•Working with Audio
•Sampling Rate, Sample Resolution, and Channels
•Sound waves are analog functions (represent a continuously varying signal)
–To store the information, however, it must be converted to pieces of information.
•Digital recording measures the sound’s amplitude at discrete moments in time
–Each measurement is called a sample
•Samples per second taken is called the sampling rate
•Sampling Rate
•Sampling Rate, Sample Resolution, and Channels
•Sampling resolution indicates the precision in measuring the sound within each sample
–8-bit
–16-bit
–32-bit
•Sample Resolution
•Sample Rates and Resolution
Sampling rate and sample resolution as
related to sound quality:
Sampling Rate and Sample Resolution Sound Quality
8 KHz, 8-bit, mono Telephone
22 KHz, 16-bit, stereo Radio
44 KHz, 16-bit, stereo CD
48 KHz, 16-bit, stereo Digital Audio Tape (DAT)
•Sound File Formats
•There are different sound file formats used for different operating systems
•Different file formats provide varying levels of sound quality and sound compression
•Sound File Formats
•WAV
•Nonstreaming media
•Streaming media
•MIDI
•Sound File Formats
•MP3 is a version of the MPEG format, which compresses audio files with minor impact on sound quality
–One controversy around the MP3 format involves copyrighted material that has been copied as MP3 without the permission of the artist or producers
•Sound File Formats
•Nonstreaming media must be completely downloaded by users before being played
–May produce lengthy delays
•Sound File Formats
•Streaming media are processed in a steady and continuous stream as they are downloaded by the browser
–Both sound and video
•Sound File Formats
•MIDI (Musical Instrument Digital Interface) converts an analog signal to a series of functions describing the pitch, length, and volume of each note
–MIDI format is limited to instrumental music and cannot be used for general sounds, such as speech
•Linking to an Audio Clip
•Embedding an Audio Clip
•An embedded object is any media clip, file, program, or other object that can be run or viewed from within a Web page
–Browsers need the appropriate plug-ins to run embedded objects
•Embedding an Audio Clip
(Internet Explorer and Netscape)
To embed a sound or video clip, use the
embed element:
"
Thursday, May 7, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment