Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

186
Visualizações
Mute audio output of an iFrame with Js/Ts

I want to mute an iFrame audio output in my Angular App. I tried some solutions, but they didn't work for me.

Here is my iFrame:

<iframe allow="camera; microphone; display-capture; autoplay; clipboard-write" src="https://meet.jit.si/a#jitsi_meet_external_api_id=0&amp;config.prejoinPageEnabled=false&amp;config.disableDeepLinking=true&amp;interfaceConfig.TOOLBAR_ALWAYS_VISIBLE=true&amp;interfaceConfig.TOOLBAR_BUTTONS=%5B%5D&amp;userInfo.displayName=%22Gustavo%20Paciente%22&amp;appData.localStorageContent=null" name="jitsiConferenceFrame0" id="jitsiConferenceFrame0" allowfullscreen="true" style="height: 778px; width: 1350px; border: 0px;"></iframe>

And here are the "solutions" I've already tried:

1 - In this case, the volume attribute is set to html, but the audios it no muted:

const iframe: any = document.getElementById('jitsiConferenceFrame0');
iframe.setAttribute("volume", "0");

2 - In this case, the "contentDocument" is null

const iframe: any = document.querySelector('iframe[id="jitsiConferenceFrame0"]');
iframe.contentDocument.getElementById("muted").checked = true;
iframe.contentWindow.speaker[0].muted = true;
iframe.contentWindow.speaker[1].muted = true;

3 - In this case, "iframe.contentDocument" (line 2) is null and "iframe.contentWindow" exists, but "iframe.contentWindow.document" (line 2) is also null.

var iframe = document.getElementById('iframeId');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var MediaSource = innerDoc.getElementById('mediaElem');
MediaSource.muted=true;

I think I'm not so far of getting it solved, but still need some help. How to solve it?

EDIT Here is my iframe object

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda