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

79
Views
Capture audio stream on a web page

I've been trying to capture audio stream on a webpage where communication can be 2-way. So far I've been successful in capturing the audio stream of the user who is speaking using MediaRecorder and navigator.mediaDevices. This is the piece of code I wrote:

const onError = (err) => {
  console.log('The following error occured: ' + err);
}

const onSuccess = (stream) => {
  const options = {
    audioBitsPerSecond :  64000,
    mimeType : 'audio/webm;codecs=opus'
  }
  recorder = new MediaRecorder(stream, options);
}

//

navigator.mediaDevices.getUserMedia({ audio: true }).then(onSuccess, onError);

recorder.ondataavailable = (e) => {
  console.log("data available");
};

recorder.start(1000);

However, I'm not able to capture the audio stream of the user who is speaking on the other end. I'm trying to do this on an online conference browser based application. I'd like to know how I can capture the audio stream of all the users speaking.

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!