Search code examples
androidsdkjitsijitsi-meet

Custom server jitsi meet with sdk on Android doesn't work


I have a server mounted and functional, I am making my own app for android, with the sdk that is provided, but I can’t get it to connect to my server, it always links to the official meet.jit server.

JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder ()
.setServerURL (new URL ("https: // meet.ownserver.com "))

Looking at the android studio console, I see that it does not matter what I put on that line (I have tried to put google.com) and nothing, it always links to the official server … how can I change that to link to my server?


Solution

  • You can basically add your own server URL, in the JitsiMeetConferenceOptions class. You can also set some other features within it such as turning off the mic and camera by default when someone enters a room. The custom URL can be added in the same class where you're setting the room name.

    Take a look at this code :

    JitsiMeetConferenceOptions options = new JitsiMeetConferenceOptions.Builder()
                    .setRoom(text)
                    .setServerURL(serverURL)
                    .setWelcomePageEnabled(false)
                    .setAudioMuted(true)
                    .setVideoMuted(true)
                    .build();
    JitsiMeetActivity.launch(this, options);