mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
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) {
|
||||
if Defaults[.pauseOnHidingPlayer] {
|
||||
playerModel.pause()
|
||||
}
|
||||
dismiss(animated: false)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user