Listening to event readyToClose in iframe jitsi

I want to listen to readyOnClose event so that I can redirect users to another URL when the jitsi close conference button is clicked.
I am using jitsi iframe .

api.on('readyToClose', () => {
        console.log('opaaaaa');
    });

Does not seems to work. Please help.

You can try addListener:

api.addListener(‘readyToClose’,yourFunctionHere);

Are you using meet.jit.si?
There is an interface config that is enabled there interfaceConfig.SHOW_PROMOTIONAL_CLOSE_PAGE which cannot be changed, this is inn order the terms and conditions to be correctly fulfilled by all users of that deployment. That property suppresses firing the event readyToClose.
If you are using your own deployment this is not enabled and you can control it.

1 Like