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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With