π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor
Neeraj Gupta7a3cd9a1394d
diff --git a/mobile/lib/services/video_preview_service.dart b/mobile/lib/services/video_preview_service.dartindex b5b9bf4d95..785b9ca92a 100644--- a/mobile/lib/services/video_preview_service.dart+++ b/mobile/lib/services/video_preview_service.dart@@ -110,8 +110,7 @@ class VideoPreviewService {EnteFile enteFile, [bool forceUpload = false,]) async {- if (!isVideoStreamingEnabled ||- !computeController.requestCompute(stream: true)) {+ if (!_allowStream()) {_logger.info("Pause preview due to disabledSteaming($isVideoStreamingEnabled) or computeController permission)",);@@ -855,13 +854,14 @@ class VideoPreviewService {chunkAndUploadVideo(null, file).ignore();}+ bool _allowStream() {+ return isVideoStreamingEnabled &&+ computeController.requestCompute(stream: true);+ }+void queueFiles({Duration duration = const Duration(seconds: 5)}) {- if (!isVideoStreamingEnabled) {- _logger.fine("Video streaming is disabled, not queuing files");- return;- }Future.delayed(duration, () {- if (!_hasQueuedFile && computeController.requestCompute(stream: true)) {+ if (!_hasQueuedFile && _allowStream()) {_putFilesForPreviewCreation(true).catchError((_) {_hasQueuedFile = false;});