Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!