Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda