260 likes | 393 Views
Multimedia in a Web site. Lesson plan. Movie/Audio Slide show Map. Getting Multimedia files. Multimedia files: Audio: Video: Plug in Enable a browser to show multimedia files on a web page. Getting multimedia files. Create sound by microphone, digitizing software
E N D
Lesson plan • Movie/Audio • Slide show • Map
Getting Multimedia files Multimedia files: Audio: Video: Plug in Enable a browser to show multimedia files on a web page
Getting multimedia files • Create sound by microphone, digitizing software • Create movie from digital camcorder, Windows Movie Maker • Search for free sound and movies on the web (Google at: http://video.google.com/)
Main movie formats • Quicktime (Apple) • Windows Media Player File (Microsoft)
Linking to a Quick Time movie • Linking to a movie: Example: <A HREF=“applead.mov”> Click here for the movie </A> Pros: Save time to download Cons: a new window is opened, users can’t see the movie directly without clicking to the link
Embed a movie <object classid ="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="240" height="196"> <param name="src" value="applead.mov"> <param name="autoplay" value ="false"> <param name="controller" value="true"> <embed src="applead.mov" width="240" heigth="196" autoplay="false" controller="true" pluginspage="http://www.apple.com/quicktime/download/"> </embed> </object>
Embeding Windows Media Player Files <object id="MediaPlayer1" classid ="CLSID:22D6F3312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="240" height="252" type="application/x-oleobject"> <param name="autostart" value="false"> <param name="filename" value="mymovie.wmv"> <param name="showcontrols" value="true"> <param name="ShowStatusBar" value="true"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="mymovie.wmv" width="240" height="252" autostart="1" showcontrols="1" showstatusbar="1"></embed></object>
Example of embeded a Windows Media Movie • Example
Practice 1. Open TextPad, cut and paste (or type) the following code<html> <head> <title> Movie page /title> </head> <body> <!– Please insert your HTML code here --> </body> </html> And save it as movie.html
2. Be sure to install Quick Time movie or Windows Media Plugins. 3. Use any search engine that supports video searching to search for your favorite video or find a web site where you can download a movie trailer or a video free (e.g http://emol.org/movies/freemovies.html 4. Modify the video.html file by adding html code to display that video directly on the web site. Then change the code to give a link to that video file.
Slide shows • Example:
Slideshow (page1.html) <head> <meta http-equiv="refresh" content=“10; url=page2.html"/> <style>p {width:200px} </style> <title> Slide Show </title> </head> <body> <p> <img src="castle.jpg" alt="Castle" width="500" height="400" /> </p> <p> Edinburgh Castle in Scotland. Edinburgh Castle dominates the city of …..</p>
Slideshow (page2.html) <head><meta http-equiv="refresh" content=“10; url=page1.html"/> <style>p {width:200px} </style> <title> Slide Show </title> </head> <body> <p> <img src="castle1.jpg" alt="Castle" width="500" height="400" /> </p> <p> Borthwick Castle built…... </P>
Practice 1. Open TextPad, cut and paste (or type) the following code<html> <head> <title> Slide show /title> </head> <body> <!– Please insert your HTML code here --> </body> </html> And save it as slideshow.html 2. Using google search engine to find 3 pictures and save it to your student storage 3. Modify your code to embed a slideshow with the 3 above pictures in your web site
Client-side Image map • Client-side image maps run more quickly because they are run by browsers at client side • What it does: As your pointer lay across the image, along the bottom of your browser, you should be seeing different URL fly by.
How do I? Step 1: Find a map: • Using Google or any image search engine to find a map Step 2: Define Your Pixel Locations : • RECTANGLE (RECT): Requires the upper left and lower right of the defined box. • CIRCLE (CIRCLE): Requires the center point and radius (in pixels). • POLYGON (POLYGON): Requires the coordinate of EACH vertex (point) of the area you want to define. Step 3: Create an Internal Map File
Example • Step 1: Type: US Map in Google Choose one US Map:
Example Step 2: Open the image map from Paint, move the cursor and note down the coordinate: E.g: Wisconsin :(258,54),(273,57),(290,68),(293,98), (268,98), (255,79) Connecticut: (296,95), (406,101),(395,126), (399,108)
Example Step 3: Creating internal map file: <center> <h1> Distribution of Top 25 Division 1 Basketball </h1> <map name="usamap" id="usmap"> <area at="Wisconsin" shape="Polygon" coords="258,54,273,57,290,68,293,98, 268,98,255,79" href="http://www.uwbadgers.com/sport_news/wbb/headlines/index.aspx" /> <area at="Connecticut" shape="Polygon" coords="296,95,406,101,395,126,399,108" href="http://www.uconnhuskies.com" /> </map> <img src="us-map.gif" alt="US Basketball Map" usemap="#usmap" width="480" heigth="329" /> </center>