Webogram: Send picture from webcam

Created on 14 Mar 2014  Â·  9Comments  Â·  Source: zhukov/webogram

Please support sending a picture taken directly from the webcam of a laptop, notebook or tablet.

enhancement

All 9 comments

what a great idea. maybe not only images but videos too? Isn't there a javascript api "getUserMedia"? https://stackoverflow.com/questions/15417036/how-to-access-the-webcam-by-javascript

Yes, pictures and movies from webcam would be great to have full coverage of that the mobile app also can. I expect there are also other implementation to use. Best would be to evaluate the two or three most used and go for the one with the most active community, highest code quality, most features, etc.

To make this issue complete:

  • image from webcam
  • video from webcam without audio
  • video from webcam with audio from mic
  • only audio from mic

I have been taking a shallow look at this: how it could be implemented and so on.
One approach could be to use the WebRTC features included on Firefox and Chrome browsers to directly use the camera and video from javascript as shown here: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia .
Also, there's this minimalistic library written in js which uses that feature to support easy usage and handle of events of the webCam: say-cheese
The problem here is that neither Internet Explorer nor Safari support it ( bad browsers :unamused:)

So, another more advanced library I've found for this is webcamjs, It makes uses of a flash player plugin for those browser which not support getUserMedia.

I think which approach we could take depend upon:

  1. How we care about support for IE and Safari of this webcam features, meanwhile they don't support WebRTC?
  2. Are we concerned in adding more libraries dependencies to webogram?
  3. We want to have any flash player:registered: plugin on webogram?
  1. + 3.: i would prefer a graceful falldown: if the browser supports it: use it. if the browser doesn't support it: well, it would be no difference to the current situation. flash player? nope.

I also don't like Flash and prefer to exclude anything with it when possible. Even if we don't have support in some browsers.

+1 for the graceful degradation approach :)

You can use accept-attribute on <input type="file" /> to hack around getUserMedia not being supported ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

azzimuth picture azzimuth  Â·  5Comments

iagocavalcante picture iagocavalcante  Â·  8Comments

bicatso picture bicatso  Â·  3Comments

cbrwizard picture cbrwizard  Â·  5Comments

Idran picture Idran  Â·  4Comments