We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Repost: Webcam in web browsers (Read 275 times)
Repost: Webcam in web browsers
May 14th, 2009, 8:15am
 
Hey everyone,

I am reposting this post from "integration section".

I had been working on to find a solution to get Processing sketches access to webcam input in web browsers; I tried to bridge Camera input from Flash to a Processing sketch in web browsers. It is simply an extended "video" library with the same functions, except that in browser it connects to a flash element on the same page instead of a 'capture' device, using javascript (in browser) as a bridge. So one needs to use this library instead of video library + a webpage with specific javascript in it + a specific flash file that connects to camera.

Here is an example:

http://www.openprocessing.org/testSpace/webcamExample.php
(using Daniel Shiffman's example from Processing)

Though there are problems as you might expect: Performance, and browser compatibility seems to be the first comers. But if we (the community) can work on this together, I think those issues can be fixed one by one. And I think even live audio input through minim would be possible (I don't know much about minim though).

Please let me know if it works on your browser/OS. Currently works fine in Firefox 3 + MacOS X.
Page Index Toggle Pages: 1