This version of the documentation is outdated!
Click here for the latest released version.
CaptureErrorCB
Invoked if an error occurs during a media capture operation.
function captureError( CaptureError error ) { ... };
Description
This function executes if an error occurs when trying to launch a media capture operation. Failure scenarios include when the capture application is busy, a capture operation is already taking place, or the user cancels the operation before any media files are captured.
This function executes with a [CaptureError](CaptureError.html) object containing an
appropriate error code.
Quick Example
// capture error callback
var captureError = function(error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};