We have one demo application java swing for capturing image from web cam.
We need same functionality in vaadin for capturing image. Is there any vaadin API for doing same ?
As a quick response : there is definitely no native Vaadin API to do such a thing, and I would hazard a fairly confident guess that there never will be.
I’m assuming that JMF = Java Media Framework - and you’ll note that the Sun/Oracle pages refer to JMF as being part of the Java Desktop Technologies, which naturally are not available in a browser (Desktop == Swing). You’ll note this is not a limitation of Vaadin, but the fact that you are developing a Web Application not a Desktop application!
I think - and in fact, I’m fairly sure - that my approach would be to use a Java Applet[1]
to capture the image which could then be posted to the web application (or passed to Vaadin somehow). See
Applet Integration Addon - the demo there uses an applet which in turn uses Swing to capture a screenshot of the desktop : a similar usecase to yours.
So in summary : use an applet to access JMF, and the appletintegration to, um, integrate the applet with Vaadin.