On an Ionic project I am recording videos with cordova capture plugin which in fact is based on Apache media-capture plugin.
Android users can choose video dimensions, but on iOS there are no buttons for that. I am testing with an iPhone 5 which records in 1920x1080, but with my Ionic app videos are 480x360, notice also aspect ratio is 4:3 no 16:9. I want at least a 720p video dimensions.
I read plugin documentation and there are only three options; duration and limit. Does it means is not possible to set the dimensions of the video?
var options = {
limit: 1,
duration: 15,
quality: 1 // Only for Android, Video quality parameter, 0 means low quality, suitable for MMS messages, and value 1 means high quality
};
$cordovaCapture.captureVideo(options)
.then(function(videoData) {});
Besides I saw Configuration Data part. I don't know were should I use that. I tried adding width
and height
to options object but I have same result as before.
var options = {
limit: 1,
duration: 15,
type: "video/quicktime",
height: 720,
width: 1280,
quality: 1
};
It said is not supported by any platform, is not this weird? :-)
Not supported by any platform. All configuration data arrays are empty.
Any idea what can I do?