|
|
@ -1012,14 +1012,16 @@ function initVroom(room) { |
|
|
|
// When we joined the room
|
|
|
|
// When we joined the room
|
|
|
|
webrtc.on('joinedRoom', function(){ |
|
|
|
webrtc.on('joinedRoom', function(){ |
|
|
|
// Check if sound is detected and warn if it hasn't
|
|
|
|
// Check if sound is detected and warn if it hasn't
|
|
|
|
setTimeout(function (){ |
|
|
|
if (window.webkitAudioContext || window.AudioContext){ |
|
|
|
if (maxVol < -60){ |
|
|
|
setTimeout(function (){ |
|
|
|
$.notify(locale.NO_SOUND_DETECTED, { |
|
|
|
if (maxVol < -80){ |
|
|
|
className: 'error', |
|
|
|
$.notify(locale.NO_SOUND_DETECTED, { |
|
|
|
autoHide: false |
|
|
|
className: 'error', |
|
|
|
}); |
|
|
|
autoHide: false |
|
|
|
} |
|
|
|
}); |
|
|
|
}, 10000); |
|
|
|
} |
|
|
|
|
|
|
|
}, 10000); |
|
|
|
|
|
|
|
} |
|
|
|
// Notify the server a new participant has joined (ourself)
|
|
|
|
// Notify the server a new participant has joined (ourself)
|
|
|
|
// If we were prompted for our display name before joining
|
|
|
|
// If we were prompted for our display name before joining
|
|
|
|
// we send it. Not that I like sending this kind of data to the server
|
|
|
|
// we send it. Not that I like sending this kind of data to the server
|
|
|
|