Link to home
Create AccountLog in
Avatar of hipal
hipalFlag for United States of America

asked on

redirecting web cam input to a JFrame

I am trying to redirect my web cam input to my JFrame.

I know this will be done some how using JMF, but not able to do that.

I will be so grateful if someone can give the code snippet for that or may be step by step procedure to attain the required.

Thanks !
Avatar of sufianmehmood
Flag of Pakistan image

to access the camera you will need to use the AviCap or Direct X library in windows. Web Camera gives you an array of images, each image is known as "frame". By displaying multiple frames in a window at the right frequency will give you smooth video display
Avatar of CEHJ
That would depend on how your cam supplies its output. Frequently there is already a java interface of some kind. What cam is it?
Avatar of hipal


I am using IBM Thinkpad t400s inbuilt cam ..

and thanks for reply CEHJ
Are you using Windows?
Avatar of CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of hipal


yes I am using Windows 7