Hello, friends!
Really need help with this useful Addon!
I want to use WebCamForVaadin but in all the cases i tried, i got an JS runtime error with message like that:
"
Cannot convert ‘d’ to object: fxwebcamforvaadinPID_SVAADIN_WEBCAM_PID name: fxwebcamforvaadinPID_SVAADIN_WEBCAM_PID".
This message appears when flash-content is still loading… then after closing error-window, flash wakes up and camera began to work, and even Capture button works well…
I’m using last Vaadin 6.7.0 (but tried versions from 6.6.0), GWT 2.4.0(but tried with 2.3.0), IDE - NetBeans 7, also I’ve tried to build Add-On in my environment, but without any success(but may be i’m not very expirienced in add-on building)… and by the way, in the beginning of my experiments, variable that cannot be converted ( in error message) was not ‘d’ but ‘e’, and this is also very strange, as for me
Also i’d thoughts about rights-management for Flash… but even with saved permissions for host with “Allow” value… the same situation.
Web-camera is important part of my project and i would be very grateful for any help! Thank you in advance!
PS. Probably anyone could suggest another good way to access WebCamera from Vaadin? I discovered and tried to use JMF, but… WebCamForVaadin’s approach completely overwhelming!
I found a small amout of time to look this project.
I have now created an example Vaadin project (WebCamTest) that uses the WebCamForVaadin add-on. Could you please test whether the example project works for you?
If it works ok, feel free to use it as a basis of your own project. To be sure that project will be similar to mine I recommed you to use the Eclipse Java EE IDE for Web Developers and latest Vaadin Eclipse plug-in with it. And, please tell me if it doesn’t work…
Is it possible to set WebCam Widget in order to act as a Red5 or Wowza client ?!
I am trying to get access to webcam/ipcam from a swf module resource using vaadin(theme resource),
but I’m not getting this approach to work as required. I need to access webcam.
Yes. It is possible to use Red5 and Wowza Client using WebCamForVaadin. I had only to adjust mxml file in order to do that.
Although, I’ve acessed webcam without WebCamForVaadin add-on. It has required only to design a swf module, and build a Embedded Object point out to this module. Besides, it is necessary to setType to Embedded.TYPE_BROWSER and voilà.
I have already using this Web Cam application.
Now i want to store this captured image into my server side machine .
please tell me how i can do this task
I’ve never used this widget - but, as a quick look at the code, you can access the current picture as a StreamResource by WebCamForVaadin#getPicture(). The following is the sort of code that might work. Note I have not tried this, as I don’t have the add-on (nor, indeed, a webcam!)
StreamResource pic = webcam.getPicture();
if (pic != null) {
try {
BufferedInputStream in = new BufferedInputStream(pic.getStream().getStream());
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("C:/temp/mypicture.jpg", false));
byte[] buffer = new byte[32 * 1024]
;
int len;
while ((len = in.read(buffer)) > 0) {
out.write(buffer, 0, len);
}
in.close();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
I really appreciate your webcam plugin!
Unfortunately, I have the same problems as already mentioned above in my project.
I get a pop-up with “Cannot call method ‘toString’ of undefined: fxwebcamforvaadinPID_SVAADIN_WEBCAM_PID name: fxwebcamforvaadinPID_SVAADIN_WEBCAM_PID” and then the image is displayed.
I use Vaadin 6.8.15, GWT 2.4.0 and Java 8 and the latest Version of Adobe Flash Player.
Could you kindly tell me how I can contribute to this project. I have managed to implement (the most basic version) of the video recording feature. The implementation is based on the MediaRecorder API (
https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder_API )