allows 30 min background streaming

This commit is contained in:
TrueZhuanjia
2025-07-07 09:31:17 +08:00
parent 07b6aa099b
commit 6579ea681e
@@ -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{