jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
283 stars 240 forks source link

Hide “Leave Meeting” button for Moderator #250

Open Anasmirza20 opened 1 month ago

Anasmirza20 commented 1 month ago

Hi Team,

I would like to know how I can customize the end-call functionality after upgrading the SDK on the Android side. Currently, when the moderator clicks the end call, two options appear: "Leave Meeting" and "End meeting for all".

My requirement is to hide the "Leave Meeting" option and only show "End meeting for all" to the moderator.

SDK Information: I am using the following SDK version in my Android project:

implementation ('org.jitsi.react:jitsi-meet-sdk:10.1.0') { transitive = true }

saghul commented 1 month ago

That is not currently possible, sorry.

Anasmirza20 commented 1 month ago

@saghul Can I do some customisation from my side, like modifying the SDK and importing it as an AAR?

saghul commented 1 month ago

You could do that yes.

Anasmirza20 commented 1 month ago

Just one thing, I want to know before digging into this. It can be customizable and written in kotlin?

saghul commented 1 month ago

No, the SDK is written in JavaScript with React Native.

Anasmirza20 commented 1 month ago

Can you please let me know which file contains this button in the SDK so that I can comment out this functionality from my side?

saghul commented 1 month ago

https://github.com/jitsi/jitsi-meet/blob/master/react/features/toolbox/components/native/HangupMenu.tsx