public void onVideoActivityResult()

in src/android/Capture.java [460:477]


    public void onVideoActivityResult(Request req) {
        // create a file object from the video absolute path
        JSONObject mediaFile = createMediaFileWithAbsolutePath(this.videoAbsolutePath);
        if (mediaFile == null) {
            pendingRequests.resolveWithFailure(req, createErrorObject(CAPTURE_INTERNAL_ERR, "Error: no mediaFile created from " + this.videoAbsolutePath));
            return;
        }

        req.results.put(mediaFile);

        if (req.results.length() >= req.limit) {
            // Send Uri back to JavaScript for viewing video
            pendingRequests.resolveWithSuccess(req);
        } else {
            // still need to capture more video clips
            captureVideo(req);
        }
    }