This commit is contained in:
Arkadiusz Fal
2022-04-03 17:03:56 +02:00
parent 1d5d920f88
commit 9e076f8b5f
2 changed files with 14 additions and 0 deletions

View File

@@ -299,6 +299,10 @@ final class PlayerModel: ObservableObject {
backend.setNeedsDrawing(presentingPlayer)
controls.hide()
#if !os(macOS)
UIApplication.shared.isIdleTimerDisabled = presentingPlayer
#endif
if presentingPlayer, closePiPOnOpeningPlayer, playingInPictureInPicture {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in
self?.closePiP()