From 6579ea681ed0a79d060be2ac51c2f19cd5f11f70 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Mon, 7 Jul 2025 09:31:17 +0800 Subject: [PATCH] allows 30 min background streaming --- VoidLink/ViewControllers/StreamFrameViewController.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/VoidLink/ViewControllers/StreamFrameViewController.m b/VoidLink/ViewControllers/StreamFrameViewController.m index 635ec838..8ca232f8 100644 --- a/VoidLink/ViewControllers/StreamFrameViewController.m +++ b/VoidLink/ViewControllers/StreamFrameViewController.m @@ -736,7 +736,7 @@ #if !TARGET_OS_TV // Terminate the stream if the app is inactive for 60 seconds Log(LOG_I, @"Starting inactivity termination timer"); - _inactivityTimer = [NSTimer scheduledTimerWithTimeInterval:60 + _inactivityTimer = [NSTimer scheduledTimerWithTimeInterval:1800 target:self selector:@selector(inactiveTimerExpired:) userInfo:nil @@ -763,7 +763,7 @@ // This fires when the home button is pressed - (void)applicationDidEnterBackground:(UIApplication *)application { - /* + Log(LOG_I, @"Terminating stream immediately for backgrounding"); if (_inactivityTimer != nil) { @@ -771,8 +771,7 @@ _inactivityTimer = nil; } - [self returnToMainFrame]; - */ + // [self returnToMainFrame]; } - (void)expandSettingsView{