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

202
Vistas
Ionic HTMLAudioElement can't change volume on IOS

I have a custom player for audio using web api. Everything works perfectly, on web, on Android, but on IOS. Actually everything on IOS works BUT volume change. The method to change volume is completely standard, I pass a number between 0.0 and 1.0 and set the volume property with that value, but it seems like capacitor on IOS just don't register it, the DOM element register the change, I can read it by the property, but the change by itself doesn't trigger the event "volumechange". Has anybody encountered this issue and got a workaround? I am on capacitor3.

// init audio
this.audio = new Audio();
// ...
// etc

// property changes, but real volume doesn't change on IOS, it changes on android and on web app
setVolume(volume: number) {
    this.audio.volume = volume;
}

// it returns the value I set on IOS
getVolume(volume: number) {
    return this.audio.volume;
}

// doesn't trigger on IOS, triggers on android and on web app
this.audio.addEventListener('volumechange', (e) => {
    console.log('Volume Changed!');
})
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