Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(local-audio): remove rendering of local audio
Leonard Kim16fbf90a00e5
diff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex 4f98236878..9a39b85b26 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.jsindex 11ee2e5e0d..c15f0bdfe0 100644--- a/modules/UI/videolayout/LocalVideo.js+++ b/modules/UI/videolayout/LocalVideo.js@@ -57,10 +57,6 @@ LocalVideo.prototype.createContainer = function () {containerSpan.innerHTML = `<div class = 'videocontainer__background'></div><span id = 'localVideoWrapper'></span>- <audio- autoplay = true- id = 'localAudio'- muted = true></audio><div class = 'videocontainer__toolbar'></div><div class = 'videocontainer__toptoolbar'></div><div class = 'videocontainer__hoverOverlay'></div>diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex 9baafc3a74..acd66e2e4d 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 <audio> elements to- // plugin's <object>s, in current layout it will capture click events- // before it reaches the local video object. We hide it here in order- // to prevent that.- //if (RTCBrowserType.isIExplorer()) {- // The issue is not present on Safari. Also if we hide it in Safari- // then the local audio track will have 'enabled' flag set to false- // which will result in audio mute issues- // $(localAudio).hide();- localAudio.width = 1;- localAudio.height = 1;- //}- },-changeLocalVideo (stream) {let localId = APP.conference.getMyUserId();this.onVideoTypeChanged(localId, stream.videoType);