Differ no sound detection until we effectivly joined the room

master
Daniel Berteaud 11 years ago
parent 43169f282e
commit d56d875a7f
  1. 23
      public/js/vroom.js

@ -819,6 +819,19 @@ function initVroom(room) {
} }
}); });
// When we joined the room
webrtc.on('joinedRoom', function(){
// Check if sound is detected and warn if it hasn't
setTimeout(function (){
if (maxVol < -40){
$.notify(locale.NO_SOUND_DETECTED, {
className: 'error',
autoHide: false
});
}
}, 10000);
});
// Handle new video stream added: someone joined the room // Handle new video stream added: someone joined the room
webrtc.on('videoAdded', function(video,peer){ webrtc.on('videoAdded', function(video,peer){
addVideo(video,peer); addVideo(video,peer);
@ -1388,16 +1401,6 @@ function initVroom(room) {
}); });
}, 60000); }, 60000);
// Check if sound is detected and warn if it hasn't
setTimeout(function (){
if (maxVol < -40){
$.notify(locale.NO_SOUND_DETECTED, {
className: 'error',
autoHide: false
});
}
}, 10000);
window.onresize = function (){ window.onresize = function (){
$('#webRTCVideo').css('max-height', maxHeight()); $('#webRTCVideo').css('max-height', maxHeight());
$('#mainVideo>video').css('max-height', maxHeight()); $('#mainVideo>video').css('max-height', maxHeight());

Loading…
Cancel
Save