Jeffrey Sambells

Accessing iPhone Camera from HTML

⌘ Permalink

With the release of iOS 6, Apple has added support for input file types that accept images or videos:

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

The resulting forms will allow you to select a new photo or video from an existing photo stream or make a new one right then. Developers don’t get to control the camera or it’s functions like they would in a native app but this at least allows users to capture or select a photo.


Powered by HTML5 Boilerplate, Jekyll Bootstrap, Diet Coda and Dropbox