How can I have PiP mode while I am still in the App? I am creating a video calling App, and while the call is still going on, you are able to go to a separate full screen view that currently is the same Fragment with the views being hidden/shown. When I go to separate full screen view, the cameras are no longer visible. We would like to solve that issue by putting the cameras in PiP mode. I see that the google meet app does that. But I could not find any reference to how to do this on the web.
Android does not provide native solution to this problem. Instead I used a touch listener to listen for drag and drop events my self. There are multiple tutorials on this topic.