How to access the "onConferenceTerminated" event?

Hello Everyone.

I need to know when the room ends to do some actions in my application.

From what I’ve been researching, this is only possible in the “onConferenceTerminated” function in the “JitsiMeetActivity” class.

To use this class, will I have to create it in my application along with the jitsi activy?

You can listen to the broadcast events without having to subclass the activity: Android SDK | Jitsi Meet

How i can?

The link above contains an example.

But i need make the download of code or i can access remote?

I tryed


import com.facebook.react.modules.core.PermissionListener;

import org.jitsi.meet.sdk.JitsiMeetActivity;
import org.jitsi.meet.sdk.JitsiMeetActivityInterface;
import org.jitsi.meet.sdk.JitsiMeetViewListener;
import org.jitsi.meet.sdk.log.JitsiMeetLogger;

import java.util.Map;

public class JitsiCallActivity  extends JitsiMeetActivity implements JitsiMeetActivityInterface, JitsiMeetViewListener {
  

    @Override
    public void requestPermissions(String[] strings, int i, PermissionListener permissionListener) {

    }

    @Override
    public void onConferenceJoined(Map<String, Object> map) {

    }

    @Override
    public void onConferenceTerminated(Map<String, Object> map) {
        JitsiMeetLogger.i("Conference finished: " + map, new Object[0]);
    }

    @Override
    public void onConferenceWillJoin(Map<String, Object> map) {

    }
}

But don’t work
@saghul you can help me?

Look at the link provided:

IntentFilter intentFilter = new IntentFilter();

intentFilter.addAction(BroadcastEvent.Type.CONFERENCE_TERMINATED.getAction());

LocalBroadcastManager.getInstance(this).registerReceiver(broadcastReceiver, intentFilter);

This should help you understand Broadcast Receivers:

1 Like

worked perfect, thank u so so so so so much for you answer