We are investigating the feasibility of creating an HTML stack that would appear mid-issue, that would allow users to take a picture with their camera and insert in to the layout. Was wondering if this is possible within the DPS environment?
I have been searching teh same topic, and have found this:
Appears that using HTML5 it is possible to access camera, audio, accelerometer, GPS, etc by using a new API, navigator.getUserMedia()
Does anyone else know if this works?
You can use the camera inside DPS publications on devices running iOS 6 or later. This is a built-in feature of HTML in iOS6. Earlier versions of the OS don't have support for this.
To access the camera use something like this:
> (for video files)
> (for pictures)
There isn't any way to get at the GPS in a DPS publication currently.
This is correct for images that has been taken by the device-camera already. Unfortunately this is not written clearly.
So yes, you can access the photo and video library on your device to upload a static / motion image which has been already taken by user.
But you cannot implement a live image of the device-cam in your DPS publication yet. This has to be implemented in iOS WebKit through getUserMedia which is not likely to be implemented before iOS7 is coming out (and I have no clue if it will be included there).