سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top