Fail video duration check before compression
Non-picker entries into the composer (share extension, web paste, draft restore) skipped the duration check that SelectMediaButton runs, so a too-long video would compress first and only get rejected afterward. - Probe duration in selectVideo when missing (share-extension deeplinks ship only uri|width|height) - Reject before processVideo when duration exceeds VIDEO_MAX_DURATION_MS, surfacing the error in the composer inline error state - Apply the same gate to restoreVideo - Normalize native getVideoMetadata duration to milliseconds to match expo-image-picker's convention (was seconds, harmless until now)
This commit is contained in:
@@ -1972,9 +1972,6 @@
|
||||
"@typescript-eslint/no-explicit-any": {
|
||||
"count": 2
|
||||
},
|
||||
"@typescript-eslint/no-floating-promises": {
|
||||
"count": 1
|
||||
},
|
||||
"@typescript-eslint/no-misused-promises": {
|
||||
"count": 4
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user