Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access Camera through iPhone Web App

Tags:

I understand that it is not quite possible to access webcam through HTML. So how about on the iPhone? Is it possible?

like image 262
felixlaumon Avatar asked Jul 10 '10 18:07

felixlaumon


People also ask

Can Web Apps access iPhone camera?

A Mobile Web App May Be All You Need For example, on iOS versions older than 13.4, you cannot directly access the camera and microphone using navigator. getUserMedia in a PWA, but in Safari this works just fine. If you then optimize your site for mobile use and add a service worker, it can also work offline.

How do I give my iPhone a webpage to access the camera?

Step 1: Go to Settings > Privacy. Step 2: Tap on Camera to see which apps have access to it. You can allow or block apps using Camera from here.

Can a browser access phone camera?

On Android devices, you can access the camera from the Browser widget. The feature is available on devices with Android OS 5.0 and later.


2 Answers

Starting with iOS6, You are able to access the Camera, and Photos using the<input type="file" /> input

like image 135
Shay B. Avatar answered Oct 12 '22 23:10

Shay B.


Take a look at: http://code.google.com/p/iphone-photo-picker/

This was done by the NextStop guys, and is open sourced under MIT license. It basically uses an URL scheme to allow you to redirect a web user to a tiny native app long enough to take the picture, and then back to your web app to continue their experience.

I haven't used it yet, but I saw them demo it in a webcast and plan on using it myself when we get our mobile site done enough to incorporate it.

like image 30
Joel Clark Avatar answered Oct 12 '22 22:10

Joel Clark