title: how can i play remote .mp3 file in my ios application?
body: <p>I'm trying to play remote <code>.mp3 file</code> </p>
  
  <p>but its giving the following error.</p>
  
  <pre><code>The operation couldn’t be completed. (OSStatus error -43.)
  </code></pre>
  
  <p>here is my code :</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      isPlaying = NO;
  
  /*   
  
   NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle]
  
  
  pathForResource:@"Dar-e-Nabi-Per" ofType:@"mp3"]];
  
  */
  
      NSURL *url = [NSURL 
  
  URLWithString:@"http://megdadhashem.wapego.ru/files/56727/tubidy_mp3_e2afc5.mp3"];
  
      NSError *error;
  
      audioPlayer = [[AVAudioPlayer alloc]
  
                     initWithContentsOfURL:url
  
                     error:&amp;error];
  
      if (error)
  
      {
  
          NSLog(@"Error in audioPlayer: %@",
  
  
                [error localizedDescription]);
  
   }
  
   else
  
   {
  
     audioPlayer.delegate = self;
  
  
     [audioPlayer prepareToPlay];
  
  
      }
  
  
  }
  </code></pre>
  
  <p>Can anyone please guide me where i'm doing mistake </p>