I am using MediaCapture from ‘ionic-native’, I want to set max duration of a video recording , but it doesn’t work,
I got the same problem, I am compiling on Android.
I am defining it this way:
let options: CaptureVideoOptions = { limit: 1, duration: 3};
const options: CaptureVideoOptions = {
duration: 60,
}
this.mediaCapture.captureVideo(options)
.then((data: MediaFile) => {
});
try this.it will work