From b0b00c9c7ad458211133ca16a3532efc836e87e6 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 5 Nov 2024 16:00:30 +0000 Subject: use megabytes rather than mebibytes for video limit (#6117) --- src/lib/media/video/compress.web.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/media/video/compress.web.ts b/src/lib/media/video/compress.web.ts index ef868792a..c64a147c5 100644 --- a/src/lib/media/video/compress.web.ts +++ b/src/lib/media/video/compress.web.ts @@ -3,7 +3,7 @@ import {ImagePickerAsset} from 'expo-image-picker' import {VideoTooLargeError} from '#/lib/media/video/errors' import {CompressedVideo} from './types' -const MAX_VIDEO_SIZE = 1024 * 1024 * 50 // 50mb +const MAX_VIDEO_SIZE = 1000 * 1000 * 50 // 50mb // doesn't actually compress, converts to ArrayBuffer export async function compressVideo( -- cgit 1.4.1