Can't play next track automatically on IPhone

Hello everyone !

I’m using AmplitudeJS 5.3.2 and I’m facing a strange behaviour on IPhone Safari.
After playing the first song of the playlist, the audio just stops and I have a console error :
Unhandled promise rejection > NotSupportedError > The operation is not supported.

If I switch songs positions, I can always reach the song played at first, so I think it is not related to the resources themselves.

I’m using a Nginx server with HTTP2 enabled, and valid HTTPS certificate.
App is built on symfony and I manually serve my resource with the following headers :

  • Content disposition
  • Content type
  • Content-length
  • Accept-ranges
  • Cache-control

Do you have any insight to help me solve this case ?

Thanks in advance !