Last active
September 24, 2022 09:08
-
-
Save jonaskahn/ee00c3c1a5a0f72a6e6ce470fb342587 to your computer and use it in GitHub Desktop.
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test Meet</title> | |
<!-- change domain to match your Jitsi server --> | |
<script src='https://meet.jit.si/external_api.js'></script> | |
<style> | |
html { | |
overflow: auto; | |
} | |
html, | |
body, | |
div, | |
iframe { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
border: none; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='meet'></div> | |
<script> | |
const domain = 'meet.jit.si'; // change domain to match your Jitsi server | |
const options = { | |
roomName: 'test345', | |
parentNode: document.querySelector('#meet'), | |
userInfo: { | |
email: '[email protected]', | |
displayName: 'John Doe', | |
}, | |
invitees:['[email protected]'] | |
}; | |
const api = new JitsiMeetExternalAPI(domain, options); | |
api.addEventListener('participantRoleChanged', function (event) { | |
if(event.role === 'moderator') { | |
api.executeCommand('password', 'ABC123456a@'); | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment