Hi,
Iam looking to add predefined password for meeting Iam working inside the source code can somebody guide me the method to add meeting password as soon as meeting starts.
Thanks
Hi,
Iam looking to add predefined password for meeting Iam working inside the source code can somebody guide me the method to add meeting password as soon as meeting starts.
Thanks
Hi,
Waiting for help for last 24 hour and no body helped me. Anyways I tried some approach and got some success but dont know what is the problem. I modified the code UserRoleChanged where I set 3 things .
I am able to achieve the e2ee and lobby but not able to set password code is below.
room.on(JitsiConferenceEvents.USER_ROLE_CHANGED, (id, role) => {
if (this.isLocalId(id)) {
logger.info(`My role changed, new role: ${role}`);
APP.store.dispatch(localParticipantRoleChanged(role));
APP.API.notifyUserRoleChanged(id, role);
if (role !== 'none') {
if (role == 'moderator') {
APP.store.dispatch(toggleE2EE(true));
APP.store.dispatch(setLobbyModeEnabled(true));
APP.store.dispatch(toggleLobbyMode(true));
APP.store.dispatch(setPassword(APP.conference, APP.conference.lock, "123123"));
console.log(APP.conference.lock, "ROLES");
}
}
} else {
APP.store.dispatch(participantRoleChanged(id, role));
}
});
APP.conference.lock is undefind.
Please guys help me.
Thanks
I got it.
if (role !== 'none') {
if (role == 'moderator') {
APP.store.dispatch(toggleE2EE(true));
APP.store.dispatch(setLobbyModeEnabled(true));
APP.store.dispatch(toggleLobbyMode(true));
const { conference, passwordRequired }
= APP.store.getState()['features/base/conference'];
APP.store.dispatch(setPassword(conference, conference.lock, "123123"));
}
}