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

138
Views
Trying to set the audio input for webRTC

I am trying to set the audio input in a webRTC Electron App. This function runs with no errors but it is completely ignored. The app is based on jssip. Anyone got any ideas?

function setaudioinput(audioSource){
log.info("Trying to set audio input to",audioSource)
const constraints = { audio: {deviceId: audioSource ? {exact: audioSource} : undefined}, };
navigator.mediaDevices.getUserMedia(constraints)
    .then(function(stream) {
    var audioTracks = stream.getAudioTracks();
    log.info('Got stream with constraints:', constraints);
    log.info('Using Audio device: ' + audioTracks[0].label);
    localStorage.setItem('AUDIOINPUT', audioSource);
})

}

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!