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)
- 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));
- 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?