SEBWIN-513, #154: Disabled pre-join page for Jitsi Meet integration.
This commit is contained in:
parent
a4d29b2301
commit
406e766cf2
1 changed files with 63 additions and 62 deletions
|
@ -1,68 +1,69 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body style="margin: 0">
|
<body style="margin: 0">
|
||||||
<div id="placeholder" />
|
<div id="placeholder" />
|
||||||
<script src='https://meet.jit.si/external_api.js'></script>
|
<script src='https://meet.jit.si/external_api.js'></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var api;
|
var api;
|
||||||
|
|
||||||
function startMeeting(credentials) {
|
function startMeeting(credentials) {
|
||||||
var configOverwrite = {
|
var configOverwrite = {
|
||||||
disableProfile: true,
|
disableProfile: true,
|
||||||
startAudioOnly: '%_AUDIO_ONLY_%',
|
prejoinPageEnabled: false,
|
||||||
startWithAudioMuted: '%_AUDIO_MUTED_%',
|
startAudioOnly: '%_AUDIO_ONLY_%',
|
||||||
startWithVideoMuted: '%_VIDEO_MUTED_%'
|
startWithAudioMuted: '%_AUDIO_MUTED_%',
|
||||||
};
|
startWithVideoMuted: '%_VIDEO_MUTED_%'
|
||||||
var interfaceOverwrite = {
|
};
|
||||||
JITSI_WATERMARK_LINK: '',
|
var interfaceOverwrite = {
|
||||||
SHOW_JITSI_WATERMARK: false,
|
JITSI_WATERMARK_LINK: '',
|
||||||
TOOLBAR_BUTTONS: [
|
SHOW_JITSI_WATERMARK: false,
|
||||||
'microphone', 'camera', '%%_ALLOW_CLOSED_CAPTIONS_%%', /*'desktop',*/ 'embedmeeting', 'fullscreen',
|
TOOLBAR_BUTTONS: [
|
||||||
'fodeviceselection', /*'hangup',*/ 'profile', '%%_ALLOW_CHAT_%%', '%%_ALLOW_RECORDING_%%',
|
'microphone', 'camera', '%%_ALLOW_CLOSED_CAPTIONS_%%', /*'desktop',*/ 'embedmeeting', 'fullscreen',
|
||||||
'livestreaming', 'etherpad', /*'sharedvideo',*/ 'settings', '%%_ALLOW_RAISE_HAND_%%',
|
'fodeviceselection', /*'hangup',*/ 'profile', '%%_ALLOW_CHAT_%%', '%%_ALLOW_RECORDING_%%',
|
||||||
'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
|
'livestreaming', 'etherpad', /*'sharedvideo',*/ 'settings', '%%_ALLOW_RAISE_HAND_%%',
|
||||||
'%%_ALLOW_TILE_VIEW_%%', 'select-background', 'download', 'help', /*'mute-everyone',*/ 'mute-video-everyone', 'security'
|
'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
|
||||||
]
|
'%%_ALLOW_TILE_VIEW_%%', 'select-background', 'download', 'help', /*'mute-everyone',*/ 'mute-video-everyone', 'security'
|
||||||
};
|
]
|
||||||
var options = {
|
};
|
||||||
configOverwrite: configOverwrite,
|
var options = {
|
||||||
height: '100%',
|
configOverwrite: configOverwrite,
|
||||||
interfaceConfigOverwrite: interfaceOverwrite,
|
height: '100%',
|
||||||
jwt: credentials.token,
|
interfaceConfigOverwrite: interfaceOverwrite,
|
||||||
parentNode: document.querySelector('#placeholder'),
|
jwt: credentials.token,
|
||||||
roomName: credentials.roomName,
|
parentNode: document.querySelector('#placeholder'),
|
||||||
width: '100%'
|
roomName: credentials.roomName,
|
||||||
};
|
width: '100%'
|
||||||
|
};
|
||||||
api = new JitsiMeetExternalAPI(credentials.domain, options);
|
|
||||||
api.addListener('audioMuteStatusChanged', args => {
|
api = new JitsiMeetExternalAPI(credentials.domain, options);
|
||||||
if (args.muted) {
|
api.addListener('audioMuteStatusChanged', args => {
|
||||||
api.executeCommand('toggleAudio');
|
if (args.muted) {
|
||||||
}
|
api.executeCommand('toggleAudio');
|
||||||
});
|
}
|
||||||
api.addListener('videoMuteStatusChanged', args => {
|
});
|
||||||
if (args.muted) {
|
api.addListener('videoMuteStatusChanged', args => {
|
||||||
api.executeCommand('toggleVideo');
|
if (args.muted) {
|
||||||
}
|
api.executeCommand('toggleVideo');
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
api.executeCommand('subject', credentials.subject);
|
api.executeCommand('subject', credentials.subject);
|
||||||
}
|
}
|
||||||
|
|
||||||
function webMessageReceived(args) {
|
function webMessageReceived(args) {
|
||||||
if ('credentials' in args.data) {
|
if ('credentials' in args.data) {
|
||||||
startMeeting(args.data.credentials);
|
startMeeting(args.data.credentials);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('unload', () => {
|
window.addEventListener('unload', () => {
|
||||||
api.executeCommand('hangup');
|
api.executeCommand('hangup');
|
||||||
api.dispose();
|
api.dispose();
|
||||||
});
|
});
|
||||||
window.chrome.webview.addEventListener('message', webMessageReceived);
|
window.chrome.webview.addEventListener('message', webMessageReceived);
|
||||||
window.chrome.webview.postMessage('credentials');
|
window.chrome.webview.postMessage('credentials');
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue