I don't think you can play streaming audio using MPMusicPlayerController
. You should look at AVPlayer
.
NSURL *url = [NSURL URLWithString:url];
AVURLAsset *asset = [AVURLAsset URLAssetWithURL:url options:nil];
AVPlayerItem *playerItem = [AVPlayerItem playerItemWithAsset:asset];
AVPlayer *audioPlayer = [AVPlayer playerWithPlayerItem:playerItem];
[audioPlayer play];