Ios Picture-In-Picture For Video Calls

Hello, I'm trying to integrate picture-in-picture feature in iOS for my video conferencing app. I followed this document but failed. https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_for_video_calls I'm trying it on real device. The iOS version of the device I tried is 17.0.4. I am developing my app with Flutter and the video conferencing library I use is jitsi. Jitsi's own picture-in-picture feature only works within the app. I think I need to intervene in the jitsi native Swift code for this to work as expected. I tried doing this by following Apple's documentation but I'm stuck. How can I integrate the pip feature?