Presentation is loading. Please wait.

Presentation is loading. Please wait.

Active Server Pages, Script & the Web Cam By: Shara Rell CS 460: Senior Capstone Experience in CS Dr. David Pankratz May 8, 2001.

Similar presentations


Presentation on theme: "Active Server Pages, Script & the Web Cam By: Shara Rell CS 460: Senior Capstone Experience in CS Dr. David Pankratz May 8, 2001."— Presentation transcript:

1

2 Active Server Pages, Script & the Web Cam By: Shara Rell CS 460: Senior Capstone Experience in CS Dr. David Pankratz May 8, 2001

3 Description: Design and launch a web server that uses active server pages in an application General Requirements: Research and purchase or secure the necessary equipment and software to implement ASP Learn VB Script or Java Script and write a test web server Server must collect specific requests from clients (input) and react based on that input Design and implement a real-time web server using ASP Animate the application over time Project Definition

4 -Technology built directly into Microsoft Web servers -Script is automatically compiled when page is loaded Java Script VS VB Script -Client Side Script: executed on the client -Server Side Script: executed on the server -What difference does it make where the script is executed? Definition: -Files that contain both HTML and script code (VB Script or Java Script) and can make calls to components in other languages like database tables or ActiveX objects What is ASP?

5 -Did find a single site with actual video streaming -Some had automatic update while others had a refresh button Much too complex -Graduate programs that deal only with video streaming -Madison: sending only some of the information and then using algorithm to fill in the missing areas Didn’t have the appropriate equipment -Needed encoder and decoders -School lab doesn’t have the equipment to support it Other sites with Web Cams Why Not Video Streaming?

6 Web Cam Camera software that will automatically take the picture and upload it to the web server. Web server Loaded with most current pic. Every ? Seconds, automatically updated with newest pic. Or have button that will get newest pic for user. Client Loaded with most current pic. Every ? Seconds, automatically updated with newest pic. Or have button that will get newest pic for user. Client VB program that will copy the image taken from the camera to one of 100 files. Basic Idea Capture Program Image Copy Program Strategy for Success Contains the pictures, html, ASP.

7 Not sure how to store the images for later use -Camera program will automatically take an image and store it in a file but keeps storing in same file Racing Conditions -Have camera program save image in one file and then have another program copy that image to a bunch of different files? - can’t read and write to same file at the same time How do we get the image files on the web server? -FTP from computer to computer What web server are we going to use? SNCUW, PWS, NT, YAHOO, …. Problems

8 What is PWS? -Turns your computer into a miniature web server -Creates virtual directories that can be linked to anywhere on your computer (C:\MyDocuments or G:\Pankdc) Where to get PWS? -Comes with Windows 95, 98 Why use PWS? -Can work on projects at home without constantly uploading them to a web server -Others can see what you’re working on if connected to network -Easy to install and use Personal Web Server (PWS)

9 Java Script Samples -WM_ImageSwap(ImageName, NewSource) -OverMouse Hyperlink -Document.Write(“ ”) -creates a new image on the page with the given source -Document.ImageName.Src = “Image1.jpg” -changes the source of the image called ImageName No Good VB Script samples -Document.Write(“IMG SRC=“Image1.jpg”>) Image Swapping

10 Animate() Fwd()Rev()Stop() Launch() AnimateFwd()AnimateRev()GoToImage() ChangeMode()ChangeSpeed() Array of Images 1 2 3... + - Java Movie Player

11 Update( ) setTimeout (“Update();”, delay); Statement; setTimeout(function, delay) ALARM While (True) { Statement; Update(); Alarm(delay); } Similar To:

12 Web Cam C:\Inetpub\Asp\Capture.jpg VB Copy Program Image C:\Inetpub\Asp\Pic0.jpg …… Pic99.jpg Image Capture Program Server View FreeCam.exe Web Cam C:\Inetpub\Asp\Capture.jpg VB Copy Program Image C:\Inetpub\Asp\Pic0.jpg …… Pic99.jpg Image Capture Program FreeCam.exe 30 Seconds Later…

13 Client View Client 1 Launch() Stop Play StartUpdate() Stop() Update() + - ChangeSpeed() Client 2 Launch() Stop Play StartUpdate() Stop() Update() + - ChangeSpeed() Web Server C:\Inetpub Image

14 ? ? ? ? ? ? ? ? ? ? What?!

15 Learning & Development Process Best Learning Technique - where I found answers -INTERNET!!!! -Other People Knowledge - what MT/CS courses were most helpful Further Research or Enhancements?! -Video Streaming??? Advice for Next Year Seniors -Don’t put things off -Can’t get it, just ask! Overall Experience

16 Easy Free Web Cam Capture Programs -http://www.msagentsoftware.com/easyfreewebcam/index.html -Written by college group in Germany IBM Net Camera -Free with IBM Net Camera WebMedia -www.microsoft.com/windows/windowsmedia/en/wm7/encoder.asp -Couldn’t get it to work properly

17 Useful Web Sites -http://www.realnetworks.com/products/producer/info.html -http://www.playstream.com/home/3minute.asp -http://www.vivo.com/products/playfree/vaplayer.htm -http://msdn.microsoft.com/scripting/default.htm?jscript -http://www.4guysfromrolla.com/webtech/ -http://www.faqts.com/knowlegde-base/index.phtml/fid/53/ -http://www.deja.com/usenet/ -http://www.webmonkey.com Books -Active Server Pages by Morneau and Batistick Resources

18 Record small video file or capture still frames -.AVI (Microsoft) files or.RAM files (RealPlayer) -.JPG,.BMP ??? USB Hook Up Other Specifications -Resolution -Speed -Picture quality PC Cam VS Web Cam -Make sure it supports video streaming Web Cam


Download ppt "Active Server Pages, Script & the Web Cam By: Shara Rell CS 460: Senior Capstone Experience in CS Dr. David Pankratz May 8, 2001."

Similar presentations


Ads by Google