Is there a JavaScript API for accessing the the iPhone's camera from Mobile Safari?
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.