allows 30 min background streaming

This commit is contained in:
TrueZhuanjia committed 2025-07-07 09:31:17 +08:00
1 parent 07b6aa099b
commit 6579ea681e
1 file changed
+3 -4
@@ -736,7 +736,7 @@
#if !TARGET_OS_TV #if !TARGET_OS_TV
// Terminate the stream if the app is inactive for 60 seconds // Terminate the stream if the app is inactive for 60 seconds
Log(LOG_I, @"Starting inactivity termination timer"); Log(LOG_I, @"Starting inactivity termination timer");
_inactivityTimer = [NSTimer scheduledTimerWithTimeInterval:60 _inactivityTimer = [NSTimer scheduledTimerWithTimeInterval:1800
target:self target:self
selector:@selector(inactiveTimerExpired:) selector:@selector(inactiveTimerExpired:)
userInfo:nil userInfo:nil
@@ -763,7 +763,7 @@
// This fires when the home button is pressed // This fires when the home button is pressed
- (void)applicationDidEnterBackground:(UIApplication *)application { - (void)applicationDidEnterBackground:(UIApplication *)application {
/*
Log(LOG_I, @"Terminating stream immediately for backgrounding"); Log(LOG_I, @"Terminating stream immediately for backgrounding");
if (_inactivityTimer != nil) { if (_inactivityTimer != nil) {
@@ -771,8 +771,7 @@
_inactivityTimer = nil; _inactivityTimer = nil;
} }
[self returnToMainFrame]; // [self returnToMainFrame];
*/
} }
- (void)expandSettingsView{ - (void)expandSettingsView{