Limit the video duration capture with Ionic Native


#1

Hi. I’m trying to capture video limiting the duration to six seconds. I use this code:

let options: CaptureVideoOptions = {
  limit: 1,
  duration: 6
};

MediaCapture.captureVideo(options)
		.then(this.editVideo)
		.catch(this.showErrorMessage);

But when I run this in my Android device, it captures untill y press the stop button.

Any help? Thanks