From 9acfbf355c008794e57468b4121eadfde78871bc Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Tue, 17 Jun 2025 20:02:03 +0530 Subject: [PATCH] fix: remove the limit for size and duration --- mobile/lib/services/video_preview_service.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mobile/lib/services/video_preview_service.dart b/mobile/lib/services/video_preview_service.dart index 8fd372c278..be616973af 100644 --- a/mobile/lib/services/video_preview_service.dart +++ b/mobile/lib/services/video_preview_service.dart @@ -731,16 +731,10 @@ class VideoPreviewService { return (null, true, null); } final int size = enteFile.fileSize!; - final int duration = enteFile.duration!; - if (size >= 500 * 1024 * 1024 || duration > 60) { - _logger.info( - "Skip Preview due to size: $size or duration: $duration", - ); - return (null, true, null); - } FFProbeProps? props; File? file; bool skipFile = false; + try { final isFileUnder10MB = size <= 10 * 1024 * 1024; if (isFileUnder10MB) {