mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Minor PiP improvement
This commit is contained in:
parent
561ead0c5a
commit
2edab536a6
@ -188,9 +188,7 @@ final class AVPlayerBackend: PlayerBackend {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { [weak self] in
|
play()
|
||||||
self?.play()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -118,11 +118,11 @@ final class AppleAVPlayerViewController: UIViewController {
|
|||||||
|
|
||||||
extension AppleAVPlayerViewController: AVPlayerViewControllerDelegate {
|
extension AppleAVPlayerViewController: AVPlayerViewControllerDelegate {
|
||||||
func playerViewControllerShouldDismiss(_: AVPlayerViewController) -> Bool {
|
func playerViewControllerShouldDismiss(_: AVPlayerViewController) -> Bool {
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
func playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_: AVPlayerViewController) -> Bool {
|
func playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart(_: AVPlayerViewController) -> Bool {
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
|
func playerViewControllerWillBeginDismissalTransition(_: AVPlayerViewController) {
|
||||||
|
Loading…
Reference in New Issue
Block a user