From 10dcdc31d8d9751c1aea77e6595bd3c5afb09e1c Mon Sep 17 00:00:00 2001 From: Acaki Date: Fri, 11 Jul 2025 14:22:01 +0800 Subject: [PATCH] refactor: let os handle pip invocation --- VoidLink/ViewControllers/StreamFrameViewController.m | 9 --------- 1 file changed, 9 deletions(-) diff --git a/VoidLink/ViewControllers/StreamFrameViewController.m b/VoidLink/ViewControllers/StreamFrameViewController.m index 53f8f487..da2d64d9 100644 --- a/VoidLink/ViewControllers/StreamFrameViewController.m +++ b/VoidLink/ViewControllers/StreamFrameViewController.m @@ -836,15 +836,6 @@ // This will fire if the user opens control center or gets a low battery message - (void)applicationWillResignActive:(NSNotification *)notification { - if (_settings.enablePIP && self.pipController && !self.pipController.isPictureInPictureActive && self.pipController.isPictureInPicturePossible) { - VideoDecoderRenderer *renderer = self.streamMan.videoRenderer; - if (renderer && renderer.displayLayer && self.view.window) { - Log(LOG_I, @"Starting Picture in Picture"); - [self.pipController startPictureInPicture]; - } else { - Log(LOG_I, @"Skipping PiP start: Renderer/Layer/Window not ready OR PiP not possible."); - } - } if (_inactivityTimer != nil) { [_inactivityTimer invalidate]; _inactivityTimer = nil;