Programmatically forcing PIP on Android SDK from 'Outside world'

Hello community,

First of all I would like to thank you for this wonderful product, cant believe I havn’ t discovered it earlier. (Saved me a lot of headaches after a failed android integration with voip, sip, asterisk).

For my usecase (Android app) I would like certain users to end up in a conference room, by default PIP enabled so they dont get confused as where their ‘host app’ went.

So I tried messing around with certain ways of initializing the JitsiMeeting:

JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
.setRoom(“Jitsi Meet”)
.setAudioMuted(false)
.setVideoMuted(false)
.setAudioOnly(false)
.setWelcomePageEnabled(false)
.setFeatureFlag(“INVITE_ENABLED”,false)
.build();

            MyJitsiMeetActivity.launch(this,options);

So if I do this it works and the meeting opens full screen, from this context I would like to force the freshly launched activity in PIP mode. I saw it has a method called ‘onUserLeaveHint’ which calls the view with enterPipMode. I tried calling it from my own managed reference like this:

MyJitsiMeetActivity m = new MyJitsiMeetActivity
m.OnUserLeaveHint();

But it keeps giving null-errors on the view. Also im not really skilled in Java delegatemethods/callbacks and inheritance, maybe I do something wrong.

Anybody an idea if this is possible and how this can be achieved? thanks in advance

greetings