mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Open PiP on iPad on going home screen (iOS 14.2+)
This commit is contained in:
parent
19d57ff55c
commit
f257632354
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user