mirror of
https://github.com/yattee/yattee.git
synced 2025-04-29 00:10:34 +05:30
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
|
playerModel.controller = self
|
||||||
playerView.player = playerModel.player
|
playerView.player = playerModel.player
|
||||||
playerView.allowsPictureInPicturePlayback = true
|
playerView.allowsPictureInPicturePlayback = true
|
||||||
|
#if os(iOS)
|
||||||
|
if #available(iOS 14.2, *) {
|
||||||
|
playerView.canStartPictureInPictureAutomaticallyFromInline = true
|
||||||
|
}
|
||||||
|
#endif
|
||||||
playerView.delegate = self
|
playerView.delegate = self
|
||||||
|
|
||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user