captureAudio = function (win, fail, args, env) { var result = new PluginResult(args, env); capture("audio", {}, result, env.webview); }
...
- __supportedVideoModes__: The recording video resolutions and formats supported by the device. (ConfigurationData[])
## capture.captureAudio
> Start the audio recorder application and return information about captured audio clip files.
navigator.device.capture.captureAudio(
CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureAudioOptions options]
);
### Description
Starts an asynchronous operation to capture audio recordings using the
device's default audio recording application. The operation allows
...
captureImage = function (win, fail, args, env) { var result = new PluginResult(args, env), options = args[0] === "undefined" ? {} : JSON.parse(decodeURIComponent(args[0])); capture("photo", options, result, env.webview); }
...
- Windows Phone 7 does not have a default audio recording application, so a simple user interface is provided.
## capture.captureImage
> Start the camera application and return information about captured image files.
navigator.device.capture.captureImage(
CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureImageOptions options]
);
### Description
Starts an asynchronous operation to capture images using the device's
camera application. The operation allows users to capture more than
...
captureVideo = function (win, fail, args, env) { var result = new PluginResult(args, env), options = args[0] === "undefined" ? {} : JSON.parse(decodeURIComponent(args[0])); capture("video", options, result, env.webview); }
...
// start image capture
navigator.device.capture.captureImage(captureSuccess, captureError, {limit:2});
## capture.captureVideo
> Start the video recorder application and return information about captured video clip files.
navigator.device.capture.captureVideo(
CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureVideoOptions options]
);
### Description
Starts an asynchronous operation to capture video recordings using the
device's video recording application. The operation allows the user
...
getSupportedAudioModes = function (success, fail, args, env) { var result = new PluginResult(args, env); result.ok([]); }
n/a
getSupportedImageModes = function (win, fail, args, env) { var result = new PluginResult(args, env); result.ok([]); }
n/a
getSupportedVideoModes = function (win, fail, args, env) { var result = new PluginResult(args, env); result.ok([]); }
n/a