Video capture to not show in my gallery on phone


#1

I am using ng-cordova’s plugin capture to capture (https://github.com/apache/cordova-plugin-media-capture) videos inside of the ionic framework from a mobile phone.

$scope.captureVideo = function() {
var options = { limit: 1, duration: 10 };

    $cordovaCapture.captureVideo(options).then(function(videoData) {
        var i, path, len;
        for (i = 0, len = videoData.length; i < len; i += 1) {
            path = videoData[i].fullPath;
            console.log("Path of the video is = " + path.toString());
        }
    }, function(err) {
        // An error occurred. Show a message to the user
    });
}

The problem is every video capture I take saves to my phones gallery which I do not want. If I capture an image it does NOT save to my phone’s gallery which is what I would like with video capture. Is there a way to stop videos from being saved?


#2

Hi there i am also facing the same problem. If you come up with solution, do share it.


#3

I came with an alternative. You can view the answer here: Video capture to not show in gallery. My problem was that when i didn’t not have the control over video so whether or not the video being in the gallery was the problem.