Reputation: 754
I have ios application which streams music from server. It takes 4 to 5 seconds to start playing audio. it seems the AVPlayer downloads entire audio file then starts playing. How to decrease long delay of AVPlayer?
Upvotes: 3
Views: 1887
Reputation: 261
iOS devices currently support streaming the following audio formats:
If your audio is in one of the these formats, AVPlayer should be able to stream it instead of needing to download it before starting to play.
Here's a link to the Apple doc where I got this info: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/FrequentlyAskedQuestions/FrequentlyAskedQuestions.html
Upvotes: 1