title: MP3 file from server is not playing with AVAudioPlayer in iOS7
body: <p>Here is my code, In this first I am calling mp3 url for downloading the audio data. then I am saving that data in local directory, After that I am playing audio from local file path but its not working <code>AVAudioPlayer</code> throwing error. I have tried some other ways also but no one work for me.
  On simulator same code is working fine.
  And the audio url is playing like a charm in browser.</p>
  
  <pre><code> NSURL *urlll=[NSURL URLWithString:@"www.xyz.audio.mp3"];
  
  [NSURLConnection sendAsynchronousRequest:[NSURLRequest requestWithURL:urlll] queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *responce,NSData* data,NSError * error) {
          if (error == nil)
          {
              indicator.hidden=YES;
              [indicator stopAnimating];
  
              if (data)
              {
                 NSString *docDirPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
                  NSString *filePath = [NSString stringWithFormat:@"%@/%@.mp3", docDirPath , @"Audio"];
                  [data writeToFile:filePath atomically:YES];
  
                NSURL *fileURL = [NSURL fileURLWithPath:filePath];
                  AudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileURL error:&amp;error];
  
                  AudioPlayer.delegate=self;
                  [AudioPlayer prepareToPlay];
                  if (AudioPlayer == nil) {
                      NSLog(@"AudioPlayer did not load properly: %@", [error description]);
                  } else {
                      [AudioPlayer play];
  
                  }
             }
        }
  }];
  </code></pre>
  
  <p>But I am getting these kind of errors : E<code>rror Domain=NSOSStatusErrorDomain Code=1685348671 "The operation couldn't be completed. (OSStatus error 1685348671.)</code></p>
  
  <p>Please Help me :( .</p>