Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: remove the limit for size and duration

Prateek Sunal9acfbf355c00
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) {