Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove invite people and other extra icon/options from meeting page? #23

Closed
maheshmbm opened this issue Mar 12, 2019 · 7 comments

Comments

@maheshmbm
Copy link

I have implemented react-native-jitsi-meet for my app & its working perfectly. But I need to remove extra action such as invite people , lock room, start showing subtitle, start recording. I did not find any way in node modules. Please help me out.
IMG_1390

@maheshmbm maheshmbm changed the title How to remove invite people and other extra icon/options from meeting page. How to remove invite people and other extra icon/options from meeting page? Mar 12, 2019
@skrafft
Copy link
Owner

skrafft commented Mar 18, 2019

@maheshmbm, you have two options to do it:

  1. The clean one: Fork Jitsi Meet to change the source code and add custom flags to display or not the menu buttons.

  2. The dirty one: Remove the menu buttons from the minified jitsi meet javascript source code when compiling your app

Due to time constraints, in the app I made, I chose option 2 and built a few scripts based on sed to remove unwanted buttons.

Typically, this is the code I added to a build script after ios compilation:

sed -i "" 's/key:"render",value:function(){var e=this.props;e._addPeopleEnabled,e._dialOutEnabled/key:"render",value:function(){return null;var e=this.props;e._addPeopleEnabled,e._dialOutEnabled/g' ../node_modules/react-native-jitsi-meet/ios/JitsiMeet.framework/main.jsbundle
sed -i "" 's/o.default.createElement(d.RoomLockButton,e),o.default.createElement(f.RecordButton,e),o.default.createElement(f.LiveStreamButton,e),//g' ../node_modules/react-native-jitsi-meet/ios/JitsiMeet.framework/main.jsbundle

@maheshmbm
Copy link
Author

@skrafft Thanks. But I could not figure out the location of the files need to change in react-native-jitsi-meet. I tried with

  1. add the given script code in main.jsbundle of my project.
  2. By commenting import package in JitsiMeet.h of JitsiMeet.framework.
  3. Traversed through all files of react-native-jitsi-meet node module, but did not got solution.

@jean-ben-guigui
Copy link
Contributor

Hello,

  1. The dirty one: Remove the menu buttons from the minified jitsi meet javascript source code when compiling your app

@skrafft, is there such a solution for android?

@anshumanburman
Copy link

@maheshmbm have you found any solution for this issue? if yes please tell me.

@letaptravek
Copy link

@maheshmbm, you have two options to do it:

  1. The clean one: Fork Jitsi Meet to change the source code and add custom flags to display or not the menu buttons.
  2. The dirty one: Remove the menu buttons from the minified jitsi meet javascript source code when compiling your app

Due to time constraints, in the app I made, I chose option 2 and built a few scripts based on sed to remove unwanted buttons.

Typically, this is the code I added to a build script after ios compilation:

sed -i "" 's/key:"render",value:function(){var e=this.props;e._addPeopleEnabled,e._dialOutEnabled/key:"render",value:function(){return null;var e=this.props;e._addPeopleEnabled,e._dialOutEnabled/g' ../node_modules/react-native-jitsi-meet/ios/JitsiMeet.framework/main.jsbundle
sed -i "" 's/o.default.createElement(d.RoomLockButton,e),o.default.createElement(f.RecordButton,e),o.default.createElement(f.LiveStreamButton,e),//g' ../node_modules/react-native-jitsi-meet/ios/JitsiMeet.framework/main.jsbundle

@skrafft , Can you please provide the 2nd solution for android. Where do I add this script for android.?
Thanks

@BoumBam
Copy link

BoumBam commented Jan 21, 2021

I'm also looking for any solution.

How to solve this issue ?

@krishnamistry17
Copy link

krishnamistry17 commented Dec 5, 2022

@ALL Any one help me for screen sharing is not working in android and
any solution for hide screen sharing option in android ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants