New HTML Trick for Web Developers in Apple’s iOS
coderwall.com
coderwall.com
I see from the spec it mentions the part about user interaction, so at least that's there. I'm just curious how the other things work if anyone can get it to work on a device. Plus, if a page has a regular form for something unrelated, can this attribute be hidden in the form to snap an image to be uploaded as well without the user knowing it?
The spec also mentions metadata in the image. Will there be a way for the user to prevent that?
Also, the spec notes three attributes: camera, camcorder, microphone. They better lock this badboy down hard.
When you tap it, a sheet slides up from the bottom of the screen with buttons for "Take Photo", "Choose Existing" and "Cancel". Tapping "Take Photo", opens the rear-facing camera, and I have to tap to take the picture.
"Choose Existing" opens the photo album. It works like a normal file chooser if your hardware doesn't support a camera.
So, on this page, I had control over taking the picture. But you raise good points, and I'm curious what you could do with JavaScript if you were trying to take pictures without the user's knowledge.
I'm also curious what metadata I just uploaded.
A better title would have been "How to use iOS6's new image + video capture from HTML". Or something like that.
I just took a photo with my mobile web browser. Cool.
Maybe I'm just tired.