iOS Question Play 3GPP Audio files

iCAB

Well-Known Member
Licensed User
Longtime User
Hi All

I am using the following code in B4A to record an audio file.
B4X:
    Dim AR As AudioRecorder
    AR.Initialize
    AR.AudioSource = AR.AS_MIC
    AR.OutputFormat = AR.OF_THREE_GPP
    AR.AudioEncoder = AR.AE_AMR_NB
    AR.setOutputFile(GetTempFolder, FileName)
Please note that, before I used the above format, I was using LibLame to encode mp3 and send to android & iOS devices. Now that LibLame is not working properly after upgrading the target SDK, I switched to AudioRecorder. This approach is working great between android devices but I am having problems playing the file on iOS ( Original code using MediaPlayer)

Is there a way to play this file in B4I?, if not what is the alternative?

Thanks
iCAB
 

iCAB

Well-Known Member
Licensed User
Longtime User
Try to change the audio encoder.
Hi Erel,Thanks for your reply!

I tried all encoding formats with AR.OF_THREE_GPP. There is no difference.
As long as I can find a combination that works with B4A and B4I, then I should be fine.

Please suggest

Thanks
iCAB
 
Upvote 0
Top