The Camera API is part of Mozillaâ€™s larger WebAPI project, which is developing a set of APIs that will allow web apps to better compete with platform-native applications. To do that the WebAPI project will give developers access to your deviceâ€™s hardware capabilities, like the camera, the calendar and even the vibration mechanism.
The WebAPI effort is a long way from complete, but the Camera API will work today on most Android devices. Mozillaâ€™s Robert Nyman has a new post over at the Mozilla Hacks blog that walks through the basics of using the nascent Camera API, including a working demo you can test on your Android device using either Firefox or Chrome.
Bear in mind that, cool as the Camera API is, itâ€™s not yet an official web standard. As with the rest of Mozillaâ€™s WebAPI project, the Camera API is still very much in the development stage.
On the other hand, for those that want to experiment, the Camera API is much further along than some of the other WebAPIs. Adding to the appeal is the fact that the Camera API is being developed in conjunction with the W3Câ€™s WebRTC spec, an effort to standardize a set of real-time audio and video streaming protocols. That means that an official standardized version of the Camera API will likely emerge sooner rather than later.
Other links you may like: