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

123
Views
Nodejs socket.io is showing webcam stream from client (angular12) as empty object

I am sending a socket.io event holding different values including webcam stream but I am consoling the event data in nodejs and I am getting empty object. what can I do to get the stream.

If I console stream on client side before sending event I get it.

here is the client code (angular 12)

  toggleVideoCall(){
    this.toggleVideo = false;
    
    let mediaDevices = navigator.mediaDevices;
    mediaDevices.getUserMedia({
      video: true,
      audio: true
    })
    .then((stream:MediaStream)=>{
      this.addMyVideo(stream);
      console.log(stream);
      this.socket.emit("call", {callerStream: stream,callerName: this.myname,callerId: this.myId,recieverName: this.userToCall.username, reciever: this.userToCall._id});
    })
    .catch(alert)
  }

here is nodejs socket.io

io.on("connection", (socket) => {
 
      socket.on("call", (data)=>{
          console.log(data)
          io.emit("pickCall", data);
      })
})

about 4 years ago · Juan Pablo Isaza
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!