I understand that it is not quite possible to access webcam through HTML. So how about on the iPhone? Is it possible?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With