Fix handling player closing on tvOS

This commit is contained in:
Arkadiusz Fal 2022-11-19 01:47:43 +01:00
parent 88cc4db1a3
commit 36ccda23a1

View File

@ -102,6 +102,11 @@ extension PlayerBackend {
if model.queue.isEmpty {
if Defaults[.closeLastItemOnPlaybackEnd] {
#if os(tvOS)
if model.activeBackend == .appleAVPlayer {
model.avPlayerBackend.controller?.dismiss(animated: false)
}
#endif
model.resetQueue()
model.hide()
}