Skip to content

armgit / ente

Public Imported from GitHub
0

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

Increase cap to max 50mb per video and 200mb max per session

laurenspriem9a14f02305d0
diff --git a/mobile/apps/photos/lib/ui/home/memories/memory_video_prefetcher.dart b/mobile/apps/photos/lib/ui/home/memories/memory_video_prefetcher.dart
index 7dd4f15344..49883ce16b 100644
--- a/mobile/apps/photos/lib/ui/home/memories/memory_video_prefetcher.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/memory_video_prefetcher.dart
@@ -11,10 +11,10 @@ import "package:photos/utils/network_util.dart";
const int kMemoryVideoLookaheadCap = 20;
const int kMemoryVideoMaxConcurrentPrefetches = 1;
-const int kMemoryVideoPreviewMaxBytes = 25 * 1024 * 1024;
-const int kMemoryVideoOriginalMaxBytes = 25 * 1024 * 1024;
+const int kMemoryVideoPreviewMaxBytes = 50 * 1024 * 1024;
+const int kMemoryVideoOriginalMaxBytes = 50 * 1024 * 1024;
const int kMemoryVideoOriginalMaxDurationSeconds = 30;
-const int kMemoryVideoSessionBudgetBytes = 100 * 1024 * 1024;
+const int kMemoryVideoSessionBudgetBytes = 200 * 1024 * 1024;
class MemoryVideoPrefetcher {
final Queue<({EnteFile file, bool Function()? stillActive})> _queue =