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

177
Visualizações
How to turn off laptop light when using only microphone in video conference?

I am developing a video conferencing solution using a media server called janus. It transmits the microphone and camera using WebRTC. I don't want the laptop light to come on when only the mic is on. However, like when only the camera is on, the indicator light comes on when only the microphone is on. How do I solve this?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I assume by WebRTC, you are getting user's mic/webcam through navigator.mediaDevices.getUserMedia. I believe the camera light is controlled by the laptop driver and you cannot control it. However, if you do not need video, you can set the constraint parameter:

// Set video to false so camera is not activated
const constraints = { audio: true, video: false }
const stream = await navigator.mediaDevices.getUserMedia(constraints);

This way hopefully camera is not activated and the laptop light won't light up.

If you want to disable video after requested, try stopping the video track. Hopefully it would stop using the camera and the light would turn off:

stream.getVideoTracks().forEach(track => track.stop());
about 4 years ago · Juan Pablo Isaza Relatório
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