A
A
Anton Ivanov2015-10-31 09:59:18
Objective-C
Anton Ivanov, 2015-10-31 09:59:18

How to play audio from the Internet on iPhone?

Hello!
Tell me how to play an mp3 file from the Internet on a standard player?
I did it on AVPlayer and AVAudioPlayer, neither of them uses the standard player, while many programs use it specifically for playing from the Internet.
I understand that you need to use MPMusicPlayerController, but I read that it only plays music from the library. Therefore, I want to either understand that I'm wrong :) or find out the right solution.
I also want to cache the file being played, but that will probably come later.
And, well, you also need to play music in the background, of course. AVPlayer and AVAudioPlayer can't (or I can't force them) :)
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
z0rgoyok, 2015-10-31
@z0rgoyok

goo.gl/aHUanl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question