Skip to content
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

Cannot find 'isAVKitPIPSupported' in scope #37

Open
niteshvaishnani opened this issue Aug 25, 2022 · 5 comments
Open

Cannot find 'isAVKitPIPSupported' in scope #37

niteshvaishnani opened this issue Aug 25, 2022 · 5 comments

Comments

@niteshvaishnani
Copy link

I am getting errors as below.
Screenshot at Aug 25 20-00-37

I imported PIPKit into the class.

Screenshot 2022-08-25 at 8 07 00 PM

Help Me ASAP.
Thank you in advance.

@Kofktu
Copy link
Owner

Kofktu commented Aug 25, 2022

PIPKit.isAVKitPIPSupported or
AVPIPKitUsable Protocol instead of PIPUsable

image

image

if you want use exitPublisher: AnyPublisher<Void, Never>
AVPIPUIKitUsable Protocol instead of AVPIPKitUsable

plz read the AVPIPKitUsable agian

@niteshvaishnani
Copy link
Author

Thank you @Kofktu . I am able to solve the above problem but now I am getting new issues while showing the view controller. I am getting errors as below.
image

I have used AVPIPKITUsable as you suggested.

@Kofktu
Copy link
Owner

Kofktu commented Aug 26, 2022

PIPUsable != AVPIPKitUsable

PIPUsable is only in app with UIViewController
AVPIPKitUsable is Picture in Picutre in iOS(Apple's AVKit.framework)

@niteshvaishnani
Copy link
Author

@Kofktu Thank you. So if I am having a calling application with screen share so while screen share I need to use pip view. So when I minimize the call, it should work in and outside of the app. so which class should I use for it?

@Kofktu
Copy link
Owner

Kofktu commented Aug 31, 2022

@niteshvaishnani
In this case, you can use AVPIPKitUsable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants