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

142
Vistas
Next song doesn't play in ios when the app is in background mode

I'm using Video tag in react native to create a media player.

The audio is getting played in background but the media player stops when the song is finished. I'll have to turn the screen on again and then the song changes automatically. After that I can again put the app on background or the phone on sleep mode.

enter image description here

I have also added other properties to this Video tag.

  1. audioOnly={true}
  2. playInBackground={true}
  3. playWhenInactive={true}
  4. onEnd={() => this.handleMusicEnd()}
  5. ignoreSilentSwitch="ignore"

The function this.handleMusicEnd() is responsible for changing the state of current song.

I enabled the background audio from Xcode to play the audio in background or sleep mode. enter image description here

What can be the reason here ? The flow works fine on Android.

about 4 years ago · Santiago Trujillo
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