fix: remove the limit for size and duration

This commit is contained in:
Prateek Sunal
2025-06-17 20:02:03 +05:30
parent 59f64da447
commit 9acfbf355c

View File

@@ -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) {