How to play AMR audio file on iPhone
Even it is an old question, I still do not have an answer.
Instead, my way is converting to wave in advance, with the use of the following library from Github
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
I have tried using
AVAudioPlayer
,MPMoviePlayer
to playAMR
files but unable to play them.AVAudioPlayer
play method always returnsNO
forAMR
files andMPMoveiPlayer
postMPMoviePlayerPlaybackDidFinishNotification
as soon as it is played. Even tried to play playAMR
with webview but without success.Is there any other way to play
AMR
files. According to this post About AMR audio file playing issue on different devices iOS4.3 above does not supportAMR
,but how can mail app can playAMR
files?I tried converting
AMR
tocaf
file usingExtAudioFile
,but I am getting an error code 1718449215 which I found out that it meanskAudioFormatUnsupportedDataFormatError
.