Yuvaraj
03/27/2025, 3:36 AMval scene = UIApplication.sharedApplication.connectedScenes.first() as? UIWindowScene
val overlayWindow: UIWindow? = scene?.let { UIWindow(it) }
overlayWindow?.setFrame(UIScreen.mainScreen.bounds)
overlayWindow?.setWindowLevel(UIWindowLevelAlert + 1)
overlayWindow?.hidden = false
overlayWindow?.rootViewController = overlayViewController
overlayWindow?.makeKeyAndVisible()
I'm able to show and hide the window everything works fine.
But when this window is shown the player compose state is still resume and playingmarkturnip
03/28/2025, 2:41 AMmarkturnip
03/28/2025, 2:43 AMmarkturnip
03/28/2025, 2:43 AMif self.window?.isKey == false {
in order to pause video