Fail video duration check before compression (#10999)

This commit is contained in:
Spence Pope
2026-06-26 18:39:15 -04:00
committed by GitHub
parent 1756740c6c
commit c5b3810229
3 changed files with 79 additions and 14 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ export async function getVideoMetadata(
mimeType: extToMime(metadata.extension),
width: metadata.width,
height: metadata.height,
duration: metadata.duration,
/*
* react-native-compressor reports seconds; the rest of the app treats
* `ImagePickerAsset.duration` as milliseconds (matching expo-image-picker).
*/
duration: metadata.duration * 1000,
}
}