Reputation: 21
I have an html page, within it i have a button called open camera, it is a regular button. I was wondering how to i go to the native side of ios and make the camera open by a click from the html content?
Upvotes: 2
Views: 5407
Reputation: 1931
Starting iOS 6 you can use this code:
<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 as mentioned in this StackOverflow answer
Upvotes: 5