How can I get callback click on hangup button using jitsi-meet iframe?

I need a callback function when I cancel call by clicking on call cancel red button.How can I get this?

You don’t receive an event when clicking the hangup button, however a few moments after you will receive an event readyToClose. IFrame API · Jitsi Meet Handbook