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

172
Visualizações
Can I send some metadata while answering a call using PeerJS?

I'm building a video calling feature using PeeJS and I am able to send metadata to a user I'm calling using the code below:

  const call = peer.call(user_id, stream, { metadata: { username: userInfo.username } });

This can be received by the receiver using the code shown below:

peer.on('call', call => {
   let callerUsername = call.metadata.username;
})

My question is how do I return the information of the receiver back to the caller when I answer the call using call.answer? I'd like to show the username of both the caller and receiver on top of the video but currently, the metadata can only be sent from the caller to the receiver.

about 4 years ago · Santiago Trujillo
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