3.3 Multimedia Enriched Html - Sound
3.3.5 Impentation of Multimedia
3.3.5.1 Embedding Sound
Your browser needs a plug-in to make it work, e.g. MS media player and quicktime. Plug-ins are small pieces of software that add extra functionality to their parent software. Many of them are offered free of charge under various kinds of free license. However, not all of them include all the codec for playing back some sound files encoded with proprietary codec. As a web-builder, use the most common codec like mp3 for the sound track. The following is an example for embedding a sound file into the web-page:
code section for mp3 sound file-
<embed src="session03/media/dire_straits-sultans_of_swing.mp3" autostart="true" loop="false" height="90" width="660" /> <noembed>Sorry, your browser doesn't support the embedding of multimedia.</noembed> |
code section for mid sound file-
<embed src="session03/media/dire_straits-sultans_of_swing.mid" autostart="false" loop="false" height="60" width="680" /> <noembed>Sorry, your browser doesn't support the embedding of multimedia.</noembed> |