Skip to content

Instantly share code, notes, and snippets.

@ryanbekabe
Created August 8, 2020 17:06
Show Gist options
  • Save ryanbekabe/2be5f27a89a4c2b4884f1498823345fa to your computer and use it in GitHub Desktop.
Save ryanbekabe/2be5f27a89a4c2b4884f1498823345fa to your computer and use it in GitHub Desktop.
<html>
<head>
<script src='https://meet.jit.si/external_api.js'></script>
</head>
<body>
<h1>Hello</h1>
<button id="start" type="button">Start</button>
<div id="jitsi-container">
</div>
<script>
var button = document.querySelector('#start');
var container = document.querySelector('#jitsi-container');
var api = null;
button.addEventListener('click', () => {
var domain = "meet.jit.si";
var options = {
"roomName": "foo-bar-c8cfdb0d-135a-4462-a05b-36575c3ef591",
"parentNode": container,
"width": 600,
"height": 200,
};
api = new JitsiMeetExternalAPI(domain, options);
});
//https://community.jitsi.org/t/cant-get-simple-example-from-jitsi-meet-api-working/24996
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment