I want to play remote mp3 from AVPlayer. I cannot make it work, and I see no reason why it does not work. The code:
NSString * urlstr=@ "..some link to a mp3" NSURL *url=[NSURL URLWithString:urlstr]; self.player = [[[AVPlayer alloc] initWithURL:url] retain]; [player play];
The link is valid. If I upload it to webView, it will start playback immediately. Please, help.
source share