- Overview
- Platform Support
- The Command-Line Interface
- Platform Guides
- Using Plugman to Manage Plugins
- The config.xml File
- Icons and Splash Screens
- Embedding WebViews
- Plugin Development Guide
- Privacy Guide
- Whitelist Guide
- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
This version of the documentation is outdated!
Click here for the latest released version.
ConfigurationData
Encapsulates a set of media capture parameters that a device supports.
Description
Describes media capture modes supported by the device. The configuration data includes the MIME type, and capture dimensions for video or image capture.
The MIME types should adhere to RFC2046. Examples:
video/3gpp
video/quicktime
image/jpeg
audio/amr
audio/wav
Properties
-
type: The ASCII-encoded lowercase string representing the media type. (DOMString)
-
height: The height of the image or video in pixels. The value is zero for sound clips. (Number)
-
width: The width of the image or video in pixels. The value is zero for sound clips. (Number)
Quick Example
// retrieve supported image modes
var imageModes = navigator.device.capture.supportedImageModes;
// Select mode that has the highest horizontal resolution
var width = 0;
var selectedmode;
for each (var mode in imageModes) {
if (mode.width > width) {
width = mode.width;
selectedmode = mode;
}
}
Not supported by any platform. All configuration data arrays are empty.