I love jQuery, but I don't see why it is required here. Wouldn't this code work just as well with a couple of element IDs, and add library independence to the bargain?
I find it interesting that JavaScript can apparently determine what video camera you have connected to you PC even without the acknowledgment of the Flash Approve/Deny access dialogue.
That's exactly the problem why our plugin (http://api.alii.tv) doesn't add the webcam output. I cannot figure out a good way to acknowledge user about the use of webcam and the potential security risk turns me down. Obviously, another problem is how to transmit the decompressed data in real-time to browser. I am interested to see their solution to the both problems.
If you're talking about Flash, note that at the last Google device convention they promised that soon they would have Android JavaScript access to the cameras sans Flash. I'm sure that will carry to ChromeOS and Chrome as well.
Sorry, I suppose I worded confusingly, however I was offering that as a non-Flash option. My point being that if they assume that Android will offer that soon because of Flash, it will also offer it natively.
I like this alot but the technology is still not there to be able to stream video and audio without flash. I wrote the site http://www.squarechat.com and try to use as much javascript as I can and only flash where it is necessary but I would love to be able to ditch flash and have video and audio streaming support.
This is really useful - as a non Flash developer I love it when people release neat, unobtrusive scripts that make Flash-only capabilities available through JavaScript.
It's not clear how this would work in older browsers that don't support canvas though.
Anyone seen anything like this but for audio instead? I'd love a way to record audio from JavaScript and stream it to a server.
I know that. I'm asking if anyone has seen a similar unobtrusive Flash widget that provides a JavaScript API for accessing audio input.
UPDATE: After a bit of searching around, it looks like there are no convenient APIs within the Flash player itself for recording audio to any kind of object that could then be uploaded - instead, you need to have an open network connection to either Flash Media Server or Red5 (the open source equivalent) and then get the server to encode to MP3.
Uses a very non-optimized way to generate the JPEG. This is the way it was done in 2007, but now there's a built-in JPEG compression function in the API available. He's using Adobe's example AS3 JPEG code.
Unfortunately, it doesn't work with flashblock. Even when I enable the flash, the javascript doesn't pick up on that and doesn't work. I guess it only checks on document load.
Id like a simpler feature - to be able to upload a photo from the iPhone via Safari Webkit [upload file form field]. Its such a pain to have to work around this in web apps.
Is it fast enough for real-time modification of the data? What if I want to do image recognition and want to ad, let's say sunglasses, to the person's face?
"error: Flash movie not yet registered!"
Some people seem to have a different definition for "directly" than I do.
This works -through- Flash. Without Flash, you get nothing. It's not "directly" with Javascript at all.