SEBWIN-515: Fixed Zoom implementation for version 1.9.8.
This commit is contained in:
parent
b5b5ad4feb
commit
bda36647f3
1 changed files with 15 additions and 4 deletions
|
@ -15,10 +15,13 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var audioJoin = 0;
|
var audioJoin = 0;
|
||||||
var videoJoin = 0;
|
var videoJoin = 0;
|
||||||
|
var join = 0;
|
||||||
|
|
||||||
function controlUserInterface(_) {
|
function controlUserInterface(_) {
|
||||||
|
var appSignal = document.getElementById('app-signal');
|
||||||
var audioButton = document.getElementsByClassName('join-audio-by-voip__join-btn')[0];
|
var audioButton = document.getElementsByClassName('join-audio-by-voip__join-btn')[0];
|
||||||
var audioContainer = document.getElementsByClassName('join-audio-container')[0];
|
var audioContainer = document.getElementsByClassName('join-audio-container')[0];
|
||||||
|
var joinButton = document.getElementsByClassName('joinWindowBtn')[0];
|
||||||
var leave = document.getElementsByClassName('footer__leave-btn-container')[0];
|
var leave = document.getElementsByClassName('footer__leave-btn-container')[0];
|
||||||
var more = document.getElementsByClassName('more-button')[0];
|
var more = document.getElementsByClassName('more-button')[0];
|
||||||
var participantControls = document.getElementsByClassName('participants-item__buttons')[0];
|
var participantControls = document.getElementsByClassName('participants-item__buttons')[0];
|
||||||
|
@ -26,6 +29,10 @@
|
||||||
var videoButton = document.getElementsByClassName('send-video-container__btn')[0];
|
var videoButton = document.getElementsByClassName('send-video-container__btn')[0];
|
||||||
var videoContainer = document.getElementsByClassName('send-video-container')[0];
|
var videoContainer = document.getElementsByClassName('send-video-container')[0];
|
||||||
|
|
||||||
|
if (appSignal) {
|
||||||
|
appSignal.style.visibility = 'hidden';
|
||||||
|
}
|
||||||
|
|
||||||
if (audioButton && !'%_AUDIO_MUTED_%' && audioJoin < 500) {
|
if (audioButton && !'%_AUDIO_MUTED_%' && audioJoin < 500) {
|
||||||
audioButton.click();
|
audioButton.click();
|
||||||
audioJoin++;
|
audioJoin++;
|
||||||
|
@ -35,6 +42,11 @@
|
||||||
audioContainer.style.visibility = 'hidden';
|
audioContainer.style.visibility = 'hidden';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (joinButton && join < 500) {
|
||||||
|
joinButton.click();
|
||||||
|
join++;
|
||||||
|
}
|
||||||
|
|
||||||
if (leave) {
|
if (leave) {
|
||||||
leave.style.visibility = 'hidden';
|
leave.style.visibility = 'hidden';
|
||||||
}
|
}
|
||||||
|
@ -71,7 +83,7 @@
|
||||||
alert('This system does not meet the necessary requirements for Zoom!');
|
alert('This system does not meet the necessary requirements for Zoom!');
|
||||||
}
|
}
|
||||||
|
|
||||||
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.9.1/lib', '/av');
|
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.9.8/lib', '/av');
|
||||||
ZoomMtg.preLoadWasm();
|
ZoomMtg.preLoadWasm();
|
||||||
ZoomMtg.prepareJssdk();
|
ZoomMtg.prepareJssdk();
|
||||||
|
|
||||||
|
@ -125,6 +137,8 @@
|
||||||
alert(`Failed to initialize meeting: ${JSON.stringify(res)}`);
|
alert(`Failed to initialize meeting: ${JSON.stringify(res)}`);
|
||||||
},
|
},
|
||||||
success: function () {
|
success: function () {
|
||||||
|
requestAnimationFrame(controlUserInterface);
|
||||||
|
|
||||||
ZoomMtg.join({
|
ZoomMtg.join({
|
||||||
apiKey: credentials.apiKey,
|
apiKey: credentials.apiKey,
|
||||||
meetingNumber: credentials.meetingNumber,
|
meetingNumber: credentials.meetingNumber,
|
||||||
|
@ -133,9 +147,6 @@
|
||||||
userName: credentials.userName,
|
userName: credentials.userName,
|
||||||
error: function (res) {
|
error: function (res) {
|
||||||
alert(`Failed to join meeting: ${JSON.stringify(res)}`);
|
alert(`Failed to join meeting: ${JSON.stringify(res)}`);
|
||||||
},
|
|
||||||
success: function (res) {
|
|
||||||
requestAnimationFrame(controlUserInterface);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue