WAC Demo: Camera
WAC 1.0 Demo: Camera
Description
Camera is the object for WAC Camera operations.Only one camera object is present in the WAC Widget Runtime. In the case of multiple cameras present on the device, it is at the widget runtime’s discretion as to which camera will be mapped to this Object.
In order to attach preview to element in your widget layout you need to call
Widget.Multimedia.Camera.setWindow( htmlObjectElement );
where htmlObjectElement should be an object representing element in your layout.
Note that passed element has to be an tag and preview won't be displayed if you use
or any other HTML element.
To take a photo simply call
Widget.Multimedia.Camera.captureImage(filename, lowRes);
Note that this widget requires WAC 1.0 APIs support in a runtime, currently implemented in Android version only.
Screenshots

Download
Works with Opera 9 to Opera 12.
About this widget
| Downloads | 4,634 |
|---|---|
| Category | WAC Demo |
| Version | 1.2 |
| Size | 14KB |
| Last update | February 7, 2011 |
| Devices | desktop, mobile |
| Original page | Internet Archive |