Expo ImagePicker video orientation bug?

When I’m selecting videos taken in portrait mode on Android and iOS, the width and height need to be switched.

However, there is no exif that comes back so that I know if it needs to be rotated or not.

Also, AFAIK, there is no way to get video metadata in Expo.

Has anyone else experienced this? Am I missing something? Maybe some fineprint in the documentation?

Managed SDK 39


Bug Filed:


The only workaround I can see is:

     const asset = await MediaLibrary.createAssetAsync(uri);
        console.log(await MediaLibrary.getAssetInfoAsync(asset))

This will actually return the width and height in the right place.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.