Expo İmage Picker videoMaxDuration not working on Android

Expo İmage Picker videoMaxDuration not working on Android,

‘videoMaxDuration po’ works perfectly on ios.

Code:

const result = await ImagePicker.launchImageLibraryAsync({

      mediaTypes: ImagePicker.MediaTypeOptions.Videos,

      allowsEditing: true,

      allowsMultipleSelection: false,

      quality: 0.8,

      videoMaxDuration: 20,      

      aspect: [4, 3],

    });

result.duration : 33222 (max 20000)

Thank you for your help

Hey @looot, could you please share what SDK version you are running? As well, what device(s) is this occurring on?

Cheers,
Adam

Was this ever resolved? This is happening to me as well. I just upgraded my project from SDK 45 to the very latest. I actually created a new project with updated libraries (expo and react), so my old project is still there. My SDK 49 version will bring up the video, but won’t put a time limit. My SDK 45 version, which used image-picker 13.1.1, still works fine, i.e. puts a max duration on the video. I’m using a Samsung Galaxy 22 Ultra.