diff --git a/public/js/Room.js b/public/js/Room.js index 247ea75c..bff2a459 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -1427,7 +1427,10 @@ function handleSelects() { setAudioButtonsDisabled(true); if (!isEnumerateAudioDevices) initEnumerateAudioDevices(); rc.produce(RoomClient.mediaType.audio, microphoneSelect.value); - rc.updatePeerInfo(peer_name, socket.id, 'audio', true); + setTimeout(function () { + rc.pauseProducer(RoomClient.mediaType.audio); + rc.updatePeerInfo(peer_name, socket.id, 'audio', false); + }, 1000); } isPushToTalkActive = !isPushToTalkActive; if (producerExist && !isPushToTalkActive) { diff --git a/public/views/Room.html b/public/views/Room.html index d1fb7b03..03bd7316 100644 --- a/public/views/Room.html +++ b/public/views/Room.html @@ -344,7 +344,7 @@ access to use this app.
|
|