No one was interested in your post so I hope and guess you figured out the solution for yourself?
Probably you can share this here for people like me stumbling upon this thread searching for the right answer
For myself I got the following code and I guess a corrupt NSURL formatting since the AVAudioPlayer returned is nil:
Code:
NSString *dummyURLString = @"http://a825.phobos.apple.com/us/r2000/005/Music/d8/a8/d2/mzi.jelhjoev.aac.p.m4p";
NSError *error;
NSURL *url = [NSURL URLWithString:dummyURLString];
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error];
[player play];
And the &error shows the following:
Code:
Error Domain=NSOSStatusErrorDomain Code=-43 "Operation could not be completed. (OSStatus error -43.)"
Any suggestions???
Thanks!