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

139
Views
WebRtc audio coming from bottom speaker on iOS Safari

Is there a way - not from react-native or 'apps', but from Safari on iOS, to programmatically (from Javascript - reactJs) control whether caller audio in a webRtc call can be sent to the top speaker, not the bottom speaker for a non-video call?

On desktops, we iterate the devices using navigated.mediaDevices.enumerateDevices - and then set the HTML audio element like this:

this.activeSoundEffect = new Audio("audio/sound.wav");
this.activeSoundEffect.loop = true;
this.activeSoundEffect.load();

const audioEl = <HTMLAudioElement & { setSinkId (deviceId: string): void }> this.activeSoundEffect;        
                if (deviceId) {
                    alert('about to set sinkId (to play ringingtone): ' + deviceId);   
                    audioElement.setSinkId(deviceId);

On iOS - there is never a device ID however, because no audio outputs are returned from enumerateDevices.

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!