Play Mp3 audio from url without full loading buffer

I'm trying to play in my app mp3 file from url ... But the problem is the file size is big 120 MB ... So i said why not making it load same as youtube since i heard we can control the buffer and not loading the full audio file to the player ... instead we can play small sizes same as youtube for example ... i search and tried to get a way or a code but i couldn't find anything.


So is it possible to play mp3 file using AVaudioPlayer immediately without loading the full audio file?

Replies

I know this answer is a bit late, but here's how to start playback without preloading the entire file.


player.automaticallyWaitsToMinimizeStalling = false     // may stall

Hi,


It seems this is not using musickit so if this issue still persists please repot to bugreport.apple.com,