Access Camera through iPhone Web App
I understand that it is not 开发者_JAVA技巧quite possible to access webcam through HTML. So how about on the iPhone? Is it possible?
Starting with iOS6, You are able to access the Camera, and Photos using the<input type="file" />
input
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.
No. You can access the phone through the native API, but not via a web app.
精彩评论