• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Displaying WebCam video in JSP

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I was trying to display a live video from Web Cam into a jsp page(Jsp and webcam are on same machine).

Initially I played with JMF API and was able to get access to web cam using Java class.
Then I returned to JSP, and tried displaying a simple video(saved on my Hard Disk) into it using HTML <object>

Now I wanted to integrate above two things. I tried to do it with what ever knowledge I have but could not succeed.

Went on the Net to search if anyone trying similar things. In some forum, for similar question I found reply as follows

Create a java application which can capture the video from your webcam.
Once done that, create a servlet which gets an inputstream from it and writes it to the outputstream of the response.
Once done that, embed a player in your JSP which points to the servlet and supports the stream format in question.


I am unable to grasp last line of above paragraph "Once done that, embed a player in your JSP which points to the servlet and supports the stream format in question."

Can anyone put light on this ?

Note: I don't want to display web cam video in Applet.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do not want Java on the client (which is understandable), then you need some other player; the major choices are Flash, QuickTime and Silverlight. The latter two are not always available, so which is best depends on your target audience; Flash may be best in the general case.

You also need a server component that streams the feed from the webcam to all clients that connect to it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic