如何使用外部 API 设置 jitsi meet video room 的密码,我可以尝试使用示例代码,但对我不起作用,创建房间但没有密码,如下所示:
var domain = "meet.jit.si";
var roomName="my_test_room1";
var options = {
roomName: roomName,
width: 1024,
height: 900,
parent: undefined,
noSsl: false,
configOverwrite: {
disableDeepLinking: true,
},
interfaceConfigOverwrite: {
filmStripOnly: false
},
userInfo: {
email: 'test@mail.ru',
displayName: 'Test Testov'
}
}
api = new JitsiMeetExternalAPI(domain, options);
var pwd = "mypass";
setTimeout(() => {
// when local user is trying to enter in a locked room
api.addEventListener('passwordRequired', () => {
api.executeCommand('password', pwd);
});
// when local user has joined the video conference
api.addEventListener('videoConferenceJoined', (response) => {
api.executeCommand('password', pwd);
});
}, 10);