Hello, I am trying to implement Picture in Picture...
# ask-ai
l
Hello, I am trying to implement Picture in Picture, using Livekit Flutter Sdk. Android works fine, but when I minimize the app, camera stops working and I am seeing black screen on PiP. I didn’t find solution, what can be a reason, or does it work in PiP iOS at all?
t
Thanks for reaching out, Misha. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for reaching out! I wanted to share that the LiveKit Flutter SDK doesn’t currently have explicit documentation about supporting Picture in Picture (PiP) mode on iOS. While PiP works well in other SDKs like React Native and Swift, it seems this feature might not be fully confirmed for Flutter just yet. This could be why you're experiencing some trouble when minimizing the app on iOS. If PiP is an important feature for your app, one option could be to explore adding some native iOS code to enable it. Also, I recommend keeping an eye on the official LiveKit Flutter SDK repository—they might have updates or tips on PiP support that could help you out. Sources: Client SDKs | livekit/livekit_composite | DeepWiki | minimal-pip/minimal-pip/PiP.swift | src/components/VideoTrack.tsx | Flutter quickstart | LiveKit docs