Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo-Image-Picker in React Native

Is there a way to limit video recording time using ImagePicker.launchCameraAsync()?

My code:

captureVideoObject = async () => {
        return await ImagePicker.launchCameraAsync({
            mediaTypes: ImagePicker.MediaTypeOptions.Videos,
            allowsEditing: true,
            quality: 1,
            aspect: [16, 9],
        });
    }

No way around for durationLimit as react-native-image-picker does?

like image 494
Babjonii Avatar asked Jun 29 '26 04:06

Babjonii


1 Answers

As of expo-image-picker v8.3.0, ImagePicker.launchCameraAsync() comes with inbuilt video controls, of which you can monitor the video recording duration via it's GUI but not programmatically. Alternatively, you can achieve limiting video duration programmatically with expo-camera

like image 139
Godlove Damian Avatar answered Jun 30 '26 23:06

Godlove Damian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!