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") +