I\'m using AVPlayer
to play mp3 files from a remote url.
i\'m having some issues with the initial loading time of the mp3, it is very slow (around 5-8 sec).
Here, What I think about it.
That different file has different move atoms, So if in such file if move atom came first then this file plays with buffering. So this file downloaded with parts and it's playing continues with buffering.
In other case, in file move atom is at last then first whole file downloaded then it plays. So I think that is your case that's why mp3 delays with some time for downloading whole mp3.
You can change move atom into such file with coding. Check out this answer Move and fix moov atom of video recorded on phone iOS