Override hangup button functionality in Jitsi iOS SDK

Hi,
I am trying to implement my own customised hangup functionality whenever user clicks on hang up button. Could someone please help me with the approach to achieve this without any code changes or minimal code changes.
Some of the below approaches are that I have in mind,

  1. Subclass AbstractHangupButton class and implement my custom hangup button and use the same instead of default one
  2. Create ref to the hangup button and override the onclick event with my custom implementation
    Please suggest me a optimised solution for this
    Thanks

You can just take our hangup button and change the functionality.

could you please tell me how to do it @saghul ? I have same trouble to do that.

*my use case is to show prompt first before the call ended.

You’ll want to introduce your logic here: jitsi-meet/HangupButton.js at master · jitsi/jitsi-meet · GitHub or in the abstract one.

Hi! How I can change the functionality hangup button?
I try this function but this doesn’t work

jitsi.addEventListener('hangup', () => { console.log("readyToCloase") })

That doesn’t work on the iOS SDK.

i want to add Web application

Are you using the iframe or hosting your own server?

If you have your own server you need to add custom JS (search the forum for how to do this, start with this) then you need to wait for the API to be ready before you attempt to add the listener. See Look here for help

The title of this post is regarding the iOS SDK. Please don’t hijack topics.