[Video] Only compress if >25mb or unknown format (#5187)
Co-authored-by: Hailey <me@haileyok.com>
This commit is contained in:
parent
42fb92064a
commit
b7d78fe59b
2 changed files with 16 additions and 3 deletions
|
@ -20,7 +20,7 @@ export function useCompressVideoMutation({
|
|||
mutationKey: ['video', 'compress'],
|
||||
mutationFn: cancelable(
|
||||
(asset: ImagePickerAsset) =>
|
||||
compressVideo(asset.uri, {
|
||||
compressVideo(asset, {
|
||||
onProgress: num => onProgress(trunc2dp(num)),
|
||||
signal,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue