Don't switch to MPV after closing PiP

This commit is contained in:
Arkadiusz Fal
2022-08-19 00:38:09 +02:00
parent fa76f726c5
commit eeda7a5c6e
4 changed files with 0 additions and 17 deletions

View File

@@ -24,17 +24,6 @@ final class PiPDelegate: NSObject, AVPictureInPictureControllerDelegate {
return
}
if player.avPlayerBackend.switchToMPVOnPipClose,
!player.currentItem.isNil
{
DispatchQueue.main.async {
player.avPlayerBackend.switchToMPVOnPipClose = false
player.saveTime {
player.changeActiveBackend(from: .appleAVPlayer, to: .mpv)
}
}
}
player.playingInPictureInPicture = false
}