Minor PiP improvement

This commit is contained in:
Arkadiusz Fal 2022-08-15 00:53:16 +02:00
parent 465b046203
commit f9ea2b6688
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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) {