I understand that it is not quite possible to access webcam through HTML. So how about on the iPhone? Is it possible?
Asked
Active
Viewed 3.8k times
3 Answers
51
Starting with iOS6, You are able to access the Camera, and Photos using the<input type="file" />
input

Shay B.
- 873
- 1
- 7
- 9
-
30The actual code should be . – The WebMacheter Oct 03 '12 at 16:19
-
But will the picture lay in the gallery? I am thinking have to catch the picture with a local html file. – lagos Oct 18 '12 at 10:06
-
8Here is sample page using input: http://goo.gl/5VbMh . Access it with your iOS 6 device. – giacomelli Nov 06 '12 at 18:12
-
1Can we prevent Choose existing option ? I want the user to take new picture each time this button is clicked. Also can we save it in a New album automatically – harishannam Sep 06 '14 at 06:21
-
How would we process the image? – Stardust Jan 17 '16 at 22:42
10
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.

Joel Clark
- 549
- 2
- 14
3
No. You can access the phone through the native API, but not via a web app.

Jason
- 86,222
- 15
- 131
- 146
-
-
Who knows? Web apps generally have very limited access to any local resources on the client, mainly for security purposes. It's possible that HTML5 will provide better access to webcams. – Jason Jul 11 '10 at 01:29
-