-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/add pip config ios #2562
Fix/add pip config ios #2562
Conversation
fixes #2561 |
how's it going? Hey, how could you do picture-in-picture? I've been trying for many months but I haven't found any information. Could you help me? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should be guarded by an iOS version check
// Create new controller passing reference to the AVPlayerLayer | ||
_pipController = [[AVPictureInPictureController alloc] initWithPlayerLayer:_playerLayer]; | ||
_pipController.canStartPictureInPictureAutomaticallyFromInline = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_pipController.canStartPictureInPictureAutomaticallyFromInline = true; | |
if (@available(iOS 14.2, *)) { | |
_pipController.canStartPictureInPictureAutomaticallyFromInline = true; | |
} |
Closing due to lack of response (from the original submitted or anyone else to review and rebase). If someone wants to pick this up please open a new PR that ports this code into the current master. We are doing our best to start clean with v6 which requires being a bit aggressive in closing stale PRs that are over a year old. Please don't consider this dismissing of your work and contribution - it's greatly appreciated. |
Describe the changes
Add audio configs required for PIP for iOS