-
Notifications
You must be signed in to change notification settings - Fork 18
/
myapp.js
42 lines (36 loc) · 971 Bytes
/
myapp.js
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
38
39
40
41
42
var apiObj = null;
function StartMeeting()
{
const domain = '40.76.47.33';
const options = {
roomName: 'JitsiMeetAPIExample',
width: '100%',
height: '100%',
parentNode: document.querySelector('#jitsi-meet-conf-container'),
userInfo: {
displayName: 'Bilal Shahzad'
},
configOverwrite:{
},
interfaceConfigOverwrite: {
DISPLAY_WELCOME_PAGE_CONTENT: false,
TOOLBAR_BUTTONS: [
'microphone', 'camera'
],
},
onload: function () {
alert('loaded');
}
};
apiObj = new JitsiMeetExternalAPI(domain, options);
apiObj.addEventListeners({
readyToClose: function () {
alert('going to close');
$("#jitsi-meet-conf-container").empty();
}
});
apiObj.executeCommand('subject', '');
}
function HangupCall(){
apiObj.executeCommand('hangup');
}