forked from salonishah01/AbolVani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideocall.html
37 lines (30 loc) · 929 Bytes
/
videocall.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<script src='https://meet.jit.si/external_api.js'></script>
</head>
<body>
<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 possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var stringLength = 30;
function pickRandom() {
return possible[Math.floor(Math.random() * possible.length)];
}
var randomString = Array.apply(null, Array(stringLength)).map(pickRandom).join('');
var domain = "meet.jit.si";
var options = {
"roomName": randomString,
"parentNode": container,
"width": 600,
"height": 600,
};
api = new JitsiMeetExternalAPI(domain, options);
});
</script>
</body>
</html>