fix: remove the limit for size and duration
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user