Android Jitsi - Picture in picture not working


I am trying to integrate JitsiMeet in an Android app and I’m running into a couple of problems.
I need to have access to the listener and the 3 callbacks so I can’t use the JitsiMeetActivity directly (that one works fine obviously, but I can’t set the listener to my own activity that way)

  1. If I subclass JitsiMeetActivity, I get access to the listeners, which is fine, but the picture in picture button stops working (does nothing). Below, JActivity extends JitsiMeetActivity, there is no custom code apart from the 3 callbacks from the listener

Also, if I start it using the method described on git (jitsi git):
JActivity.launch(getContext(), JitsiConfig.getJitsiOptions(user, roomName));
This would launch using the static method from JitsiMeetActivity and it would launch JitsiMeetActivity, not my subclass (again using that method I would lose access to listeners)

I’ve started it manually like this (same as the code in the launch method but making sure my own activity fires). This breaks picture in picture, as said above.
Intent intent = new Intent(getContext(), JActivity.class);
intent.putExtra(“JitsiMeetConferenceOptions”, JitsiConfig.getJitsiOptions(user, roomName));
startActivityForResult(intent, REQUEST_CODE_JITSI);

  1. I’ve tried creating a separate activity and using the JitsiMeetView instead of the above method, but I’m having trouble first with permissions (not sure what is missing, using the code from git) and second, if the permissions are ok after multiple runs, again picture in picture is not working.

All I need is the default behaviour coupled with access to the listener so I can handle join/terminate.

Thanks a lot for the assistance.

PS: I’m also a bit confused on how to make use of a custom colorscheme.js file that would have to be sent as a bundle while building the options object. Can you suggest any way to handle this?

I’ve solved the picture in picture problem, realised I need special manifest declaration for those activities, so that problem is solved.

I could use some help converting the custom colorscheme.js file to Bundle so I can use it for the options file.

Thank you