react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

maxVideoDuration is recording for 60 seconds

Open devilabhi opened this issue 1 year ago • 3 comments

I passed 31 value in maxVideoDuration i.e maxVideoDuration:31 It is showing the videos that are of max 30 seconds but while recording from camera it is not recording for 30 seconds. Any help is appreciated. Thanks

devilabhi avatar Jan 20 '23 09:01 devilabhi

hello, @devilabhi this is because default duration is set to 60 just add the maxVideoDuration field to fix it

  const response = await MultipleImagePicker.openPicker({
      usedCameraButton: false,
      isExportThumbnail: true,
      isPreview: true,
      mediaType: 'all',
      maxSelectedAssets: 1,
      maxVideoDuration: 1200, // change this with your choice
    });

itsnyx avatar Jan 27 '23 09:01 itsnyx

Hi @itsnyx, Please check my comment that is first in this page i.e. I set maxVideoDuration: 31

devilabhi avatar Feb 16 '23 11:02 devilabhi

hi @devilabhi Does your issue still persist?

baronha avatar Sep 21 '23 16:09 baronha