Adding Sound and Video to your Webpage

Horizontal blue line

Sound

  1. To add link to a sound file, type the following code:
  2. <A HREF=“yoursound_file.ext”>Any text you want to type here </A>

    For an example visit the following page: soundexample1.html

  3. To embed sound in a page that works with Netscape and Internet explorer browsers, type the following HTML code:

    <EMBED SRC=“name_of_your_sound_file.ext” HIDDEN=“true” AUTOSTART=“true” LOOP=“true”></EMBED>

    • The EMBED tag load the media plug-in
    • SRC attribute tells the media file to play
    • HIDDEN=“value” (true or false) hides the sound controller
    • AUTOSTART=“value” (true or false) will play the sound as soon as the page loads
    • LOOP=“value” (true or false) plays the sound continuously

    For an example visit the following page: soundexample2.html


Video

  1. To add link to a video file, type the following code:

    <A HREF=“yourvideo_file.ext”>Any text you want to type here </A>

    You might want add two formats of your video files so the internet users can play it in a PC or Mac computer, i.e. Quicktime (.mov) and Windows Media (.wmv or .avi)

    For an example visit the following page: videoexample1.html

  2. To embed video in a page type the following HTML code:

    <EMBED src=“http://www.caam.rice.edu/~rat/articles/movies/tapia3.mov” width=“320” height=“256” AUTOSTART=“false” LOOP=“false” CONTROLLER=“true” PLUGINSPAGE=“http://www.apple.com/quicktime/download”></EMBED>

    • The EMBED tag load the media plug-in
    • SRC attribute tells the media file to play
    • WIDTH=“value” in pixels.
    • HEIGHT=“value” in pixels (add 16 more pixels if showing controller)
    • CONTROLLER=“value” (true or false) display the movie controller
    • AUTOSTART=“value” (true or false) will play the sound as soon as the page loads
    • LOOP=“value” (true or false) plays the videocontinuously
    • PLUGINSPAGE=“value” URL from which the user can download the necessary plug-in if it is not installed
      • for Quicktime movie enter: http://www.apple.com/quicktime/download
      • Windows media movie: http://www.microsoft.com/Windows/MediaPlayer/
    • If you just want to hear the sound of the movie, add HIDDEN=true and set AUTOSTART=true

    For an example visit the following page: videoexample2.html

 


GirlTECH HomeCEEE HomeRice Home

 

This website is maintained by Hilena Vargas (hvargas@rice.edu)

Updated: July 29, 2003

GirlTECH is made possible by support from the National Science Foundation through EOT-PACI, RGK Foundation, the Verizon Foundation, Rice University, and HiPerSoft.

Copyright © 1995-2003 by GirlTECH.