This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
room.on(JitsiConferenceEvents.USER_LEFT, (id, user) => { | |
// The logic shared between RN and web. | |
commonUserLeftHandling(APP.store, room, user); | |
// if user is a moderator, kick everyone out | |
if(user.isModerator) { | |
let participants = APP.conference.listMembers(); | |
participants.forEach(participant => { | |
APP.store.dispatch(kickedOut(room, participant)); | |
this.leaveRoomAndDisconnect(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RECORDINGS_DIR=$1 | |
VIDEO_FILE_PATH=$(find $RECORDINGS_DIR -name *.mp4) | |
VIDEO_FILE_NAME=${VIDEO_FILE_PATH} | |
### WE USE THIS FILE FOR UPLOADS | |
CONFIG_FILE_PATH="/etc/jitsi/uploader" | |
# pull jitsi uploader environment var overrides if it exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to have your prosody set up on your server, such as remote_prosody@yourserver, and can access root/sudo | |
# you can create this file and c&p the 5 lines below into the home directory | |
$ cd ~ | |
$ vi create_prosody_user.sh | |
#!/bin/bash | |
sudo -s <<EOF | |
prosodyctl register $1 yourhost.com "$2" | |
EOF |