title: How to play AMR audio file on iPhone
body: <p>I have tried using <code>AVAudioPlayer</code> , <code>MPMoviePlayer</code> to play <code>AMR</code> files but unable to play them. <code>AVAudioPlayer</code> play method always returns <code>NO</code> for <code>AMR</code> files and <code>MPMoveiPlayer</code> post <code>MPMoviePlayerPlaybackDidFinishNotification</code> as soon as it is played. Even tried to play play <code>AMR</code> with webview but without success. </p>
  
  <p>Is there any other way to play <code>AMR</code> files. According to this post <a href="https://stackoverflow.com/questions/6758167/about-amr-audio-file-playing-issue-on-different-devices">About AMR audio file playing issue on different devices</a> iOS4.3 above does not support <code>AMR</code> ,but how can mail app can play <code>AMR</code> files?</p>
  
  <p>I tried converting <code>AMR</code> to <code>caf</code> file using <code>ExtAudioFile</code> ,but I am getting an error code 1718449215 which I found out that it means <code>kAudioFormatUnsupportedDataFormatError</code>.</p>