Slightly delay MoH check

So it doesn't start/stop when you join a room with participants
master
Daniel Berteaud 11 years ago
parent d4dcea1b58
commit 07276cbd86
  1. 2
      public/js/vroom.js

@ -630,6 +630,7 @@ function initVroom(room) {
// Check if MoH is needed // Check if MoH is needed
function checkMoh(){ function checkMoh(){
setTimeout(function(){
if (!moh && Object.keys(peers).length < 2){ if (!moh && Object.keys(peers).length < 2){
if (!$('#pauseMohButton').is(':checked')){ if (!$('#pauseMohButton').is(':checked')){
$('#mohPlayer')[0].play(); $('#mohPlayer')[0].play();
@ -637,6 +638,7 @@ function initVroom(room) {
} }
$('.aloneEl').show(200); $('.aloneEl').show(200);
} }
}, 3000);
} }
// An owner is muting/unmuting someone // An owner is muting/unmuting someone

Loading…
Cancel
Save