diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 4f9823687..9a39b85b2 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -366,7 +366,8 @@ UI.unbindEvents = () => { UI.addLocalStream = track => { switch (track.getType()) { case 'audio': - VideoLayout.changeLocalAudio(track); + // Local audio is not rendered so no further action is needed at this + // point. break; case 'video': VideoLayout.changeLocalVideo(track); diff --git a/modules/UI/videolayout/LocalVideo.js b/modules/UI/videolayout/LocalVideo.js index 11ee2e5e0..c15f0bdfe 100644 --- a/modules/UI/videolayout/LocalVideo.js +++ b/modules/UI/videolayout/LocalVideo.js @@ -57,10 +57,6 @@ LocalVideo.prototype.createContainer = function () { containerSpan.innerHTML = `
-
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 9baafc3a7..acd66e2e4 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -170,24 +170,6 @@ var VideoLayout = { largeVideo.updateLargeVideoAudioLevel(lvl); }, - changeLocalAudio (stream) { - let localAudio = document.getElementById('localAudio'); - localAudio = stream.attach(localAudio); - - // Now when Temasys plugin is converting also