From 1963972f75629ff66080e33259e1d9683ac3236d Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 15 Jul 2016 13:12:14 -0500 Subject: [PATCH] Fixes the issue with missing audio element for remote participants --- modules/UI/videolayout/RemoteVideo.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/UI/videolayout/RemoteVideo.js b/modules/UI/videolayout/RemoteVideo.js index 32c3fd114..016298f35 100644 --- a/modules/UI/videolayout/RemoteVideo.js +++ b/modules/UI/videolayout/RemoteVideo.js @@ -144,13 +144,7 @@ RemoteVideo.prototype.removeRemoteStreamElement = function (stream) { var isVideo = stream.isVideoTrack(); var elementID = SmallVideo.getStreamElementID(stream); - var select = null; - if (isVideo) { - select = $('#' + elementID); - } - else - select = $('#' + this.videoSpanId + '>audio'); - + var select = $('#' + elementID); select.remove(); console.info((isVideo ? "Video" : "Audio") +