mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
Open PiP on iPad on going home screen (iOS 14.2+)
This commit is contained in:
@@ -54,6 +54,11 @@ final class PlayerViewController: UIViewController {
|
||||
playerModel.controller = self
|
||||
playerView.player = playerModel.player
|
||||
playerView.allowsPictureInPicturePlayback = true
|
||||
#if os(iOS)
|
||||
if #available(iOS 14.2, *) {
|
||||
playerView.canStartPictureInPictureAutomaticallyFromInline = true
|
||||
}
|
||||
#endif
|
||||
playerView.delegate = self
|
||||
|
||||
#if os(tvOS)
|
||||
|
Reference in New Issue
Block a user