Do not autoplay moh if it was muted

master
Daniel Berteaud 11 years ago
parent 32790721f4
commit 9766ea688a
  1. 6
      public/js/vroom.js

@ -915,8 +915,10 @@ function initVroom(room) {
// We will check if moh is needed // We will check if moh is needed
setInterval(function(){ setInterval(function(){
if (!moh && Object.keys(peers).length < 2){ if (!moh && Object.keys(peers).length < 2){
$('#mohPlayer')[0].play(); if (!$('#pauseMohButton').is(':checked')){
moh = true; $('#mohPlayer')[0].play();
moh = true;
}
$('.aloneEl').show(200); $('.aloneEl').show(200);
} }
}, 2000); }, 2000);

Loading…
Cancel
Save