我无法播放 mp3 音频文件。
URL_PATH = @"http://...../.…./A1.mp3";
NSError *错误;
player = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL URLWithString:URL_PATH] error:&error];
if (error)
{
NSLog(@"error:%@",error.localizedDescription);
}
if (player ==nil)
{
NSLog(@"nil");
}
else
{
NSLog(@"playing");
[player play];
}
错误代码 :
error:The operation couldn’t be completed. (OSStatus error -43.)
nil
我能怎么做?请告诉我提示。预谢谢!