Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.0, 1.2.0
-
Samsung Galaxy S2
Description
While using the Capture API, specifically to capture video, the returned object within the the error callback is a string with value "Canceled." and not a CaptureErrorCB with an error code.
This happens when the user cancels the capture using the back button, but could also happen for other error (with another message).
This is the code in question :
else if (resultCode == Activity.RESULT_CANCELED) {
// If we have partial results send them back to the user
if (results.length() > 0)
// user canceled the action
else { this.fail("Canceled."); }
}
// If something else
else {
// If we have partial results send them back to the user
if (results.length() > 0) { this.success(new PluginResult(PluginResult.Status.OK, results, "navigator.device.capture._castMediaFile"), this.callbackId); }
// something bad happened
else
}
}