I am using cordova-plugin-media-capture plugin to record videos. It captures fine when recorded in landscape orientation but on portrait mode, video shown is upside down. Following is the sample code
var options = { limit: 1};
$cordovaCapture.captureVideo(options).then(function(videoData) {
addVideoToLocalStorage(videoData, slotNumber);
}, function(err) {
$scope.localStorageVideos = 'Err: <br />'+ JSON.stringify(videoData)
});
you can lock orientation for an application using this config.xml value:
While this works well, you wanted to do videos in landscape mode instead. you had it working fine in iOS but nothing you tried would work for Android. I began by looking for a plugin to allow me to switch orientation dynamically. This one, screen orientation worked great.
Got great help from this blog post .Hopefully this will help you.