3

On a web page, I need to be able to capture a still image from the users webcam or phone camera. It looks like getUserMedia() is only supported by Firefox, Opera and Chrome and I wasn't able to find a still image capture example using it. Flash won't work on Apple devices. Is there a single cross-browser solution for this? If not, what set of solutions will cover desktop and mobile camera capture?

George
  • 934
  • 2
  • 10
  • 21

1 Answers1

2

You pretty much answer the question yourselves. Only Chrome, Firefox and Opera (desktop from next version) currently support getUserMedia.

As Flash is unavailable on iOS (as you also mention) you would need to write a native application to support that OS.

So in short: there does not exist a single cross-browser solution for this at the time of this writing.

There are many solutions out there which allow you to grab a video from a web camera running in native environment. You don't mention programming platform so I can't give any specific example but for iOS this can be a good starting point.

  • Thanks, Ken. You asked about programming platform. I want to do it all from the web page, hopefully without having to install anything on the user's device. Is there anything for IOS that would allow that? So the platform would be HTML5 and Javascript with the possible addition of libraries like jQuery. Flash would work only because a lot of desktops, laptops and android devices already have it installed. – George Nov 04 '13 at 19:36
  • @user1981459 not that I know of. As the browser on iOS doesn't support it there is not much we can do but sit and wait until it does. Browser extension may be one approach but then you need the user to install something which you want to avoid. –  Nov 05 '13 at 02:08