Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you access the iPhone camera from Mobile Safari? [closed]

Is there a JavaScript API for accessing the the iPhone's camera from Mobile Safari?

like image 367
kim3er Avatar asked Apr 09 '10 11:04

kim3er


People also ask

Can a website access my iPhone camera?

It's worth pointing out that Safari doesn't let any website access your iPhone's camera, microphone, or location by default. First, you get a pop-up, and unless you accidentally or intentionally gave it perms, the website won't have access to your camera or microphone.

Can Safari access iOS camera?

On iOS 13 and up, you can also set the camera and microphone to be enabled by default: Go to Settings on your device. Scroll down and open Safari tab. Ensure Camera & Microphone are set to Allow.

Can Safari access my camera?

Bottom Line: Camera and Microphone Safari iOS Based on the requirement, you can either allow or block the safari camera access and microphone access on the iPhone or iPad. By default, the permission is set to block, however, you can toggle the button to allow the camera and microphone.


1 Answers

Since iOS6, you can use

<input type="file" accept="image/*" capture="camera"> <input type="file" accept="video/*" capture="camera"> 

It will act like a regular file upload, but instead, it will open the iPhone camera and upload a picture or a video.

Hope this help someone.

like image 91
Simon Arnold Avatar answered Sep 20 '22 19:09

Simon Arnold