mirror of
https://github.com/yattee/yattee.git
synced 2025-01-07 18:10:33 +05:30
Pause before dismissing player on tvOS
This commit is contained in:
parent
d1ed896166
commit
5b12dbcb1e
@ -127,6 +127,9 @@ extension PlayerViewController: AVPlayerViewControllerDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
|
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
|
||||||
|
if Defaults[.pauseOnHidingPlayer] {
|
||||||
|
playerModel.pause()
|
||||||
|
}
|
||||||
dismiss(animated: false)
|
dismiss(animated: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user