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:
parent
2b4627c3d6
commit
674269c4c1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user