Ionic 2 Native Camera - Limit duration of video capturing


I am using Ionic 2 Native to capture video in my app, and I need to limit the duration of the video to a few seconds.

Is this possible using Ionic Native? if not, is it possible using other Cordova plugins?



Hi, still no answear? I will face this behavior soon :slight_smile:



Actually, I’ve found the answer :slight_smile:

You should use the Media Capture plugin instead of the Camera plugin:

MediaCapture.captureVideo({ limit: 1, duration: 20 })…

Thanks to this guy:


thanks a lot @bluzi :wink: