diff --git a/app.js b/app.js index a9b6a6d79..66454e5a9 100644 --- a/app.js +++ b/app.js @@ -962,7 +962,6 @@ function toggleVideo() { */ function toggleAudio() { if (!(connection && connection.jingle.localAudio)) { - preMuted = true; // We still click the button. buttonClick("#mute", "icon-microphone icon-mic-disabled"); return; diff --git a/videolayout.js b/videolayout.js index 06e866d95..156e41768 100644 --- a/videolayout.js +++ b/videolayout.js @@ -1,5 +1,4 @@ var VideoLayout = (function (my) { - var preMuted = false; var currentDominantSpeaker = null; var lastNCount = config.channelLastN; var lastNEndpointsCache = []; @@ -14,10 +13,6 @@ var VideoLayout = (function (my) { RTC.attachMediaStream($('#localAudio'), stream); document.getElementById('localAudio').autoplay = true; document.getElementById('localAudio').volume = 0; - if (preMuted) { - toggleAudio(); - preMuted = false; - } }; my.changeLocalVideo = function(stream, flipX) {