1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-12 21:30:32 +05:30

Fix issue with tvOS screensaver

This commit is contained in:
Arkadiusz Fal 2023-10-15 00:28:47 +02:00
parent 2b4627c3d6
commit 674269c4c1

View File

@ -666,6 +666,10 @@ final class AVPlayerBackend: PlayerBackend {
} else {
ScreenSaverManager.shared.enable()
}
#else
DispatchQueue.main.async {
UIApplication.shared.isIdleTimerDisabled = self.model.presentingPlayer && self.isPlaying
}
#endif
self.timeObserverThrottle.execute {