for android PIP, that’s more of a client-side thing to implement, as it requires changing the activity to declare that it’s PIP capable, and then changing the layout to what you want it to contain when entering/exiting PIP mode. unfortunately I don’t think we can implement a self-contained pip experience like on iOS.
that said, I have tried out using
this library in the past, and although it’s 4 years old now, seemed to work fine.
if you’re on expo, this library seems much more up to date:
https://github.com/EdgarJMesquita/expo-pip
----
for iOS, I think you might want to look into turning on
multitaskingCameraAccess
, which is required for keeping the camera on in the background/pip. check out our installation instructions for iOS.
https://github.com/livekit/client-sdk-react-native?tab=readme-ov-file#ios