title: AVAudioPlayer Not playing Mp3 File I tried But no luck
body: <p>Hi I am using below code to play my local mp3 file. but no error came. but mp3 is not playing.</p>
  
  <pre><code>AVAudioPlayer  *audioPlayer ;
  NSString *sound_file;
  if ((sound_file = [[NSBundle mainBundle] pathForResource:@"mpthreetest" ofType:@"mp3"])){
  
      NSURL *url = [[NSURL alloc] initFileURLWithPath:sound_file];
      audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:NULL];
      audioPlayer.delegate = self;
  
  
      [audioPlayer prepareToPlay];
      [audioPlayer play];
  
  }
  </code></pre>