diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 75118d71..4f80e62b 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -254,11 +254,12 @@ class CallWindow extends CustomEvents { ) // Video button - setButtonSelected( - bottomArea.querySelector("[data-label=\"camera\"]"), - this.mainStream && this.mainStream.getVideoTracks().length > 0 && - this.mainStream.getVideoTracks()[0].enabled - ) + if(this.allowVideo) + setButtonSelected( + bottomArea.querySelector("[data-label=\"camera\"]"), + this.mainStream && this.mainStream.getVideoTracks().length > 0 && + this.mainStream.getVideoTracks()[0].enabled + ) } this.on("localVideo", () => {