Hello. I have a problem.
I already created a topic that audio messages on iOS are not played, I solved this problem using the WAV audio files.
now the audio that was generated on ios or android works on my ipad.
But now audio created on ipad doesn't work on android.
I'm using this code to record audio files
when I download this file using ftp on android, it shows the file length 5000+ or other strange large numbers, and infinitely calls the method Sub MP_Complete
screenshot of this error
A very simple example to demonstrate the error
I already created a topic that audio messages on iOS are not played, I solved this problem using the WAV audio files.
MediaPlayer doesn't play mp3 files
Hi, I am developing a chat with audio messaging and I faced a problem. I can download the file from the server using FTP, but I cannot play it, I have the error here: Mp.Initialize(File.DirDocuments, audiomessagefilename, "MP") Error: Error loading file: Error Domain=NSOSStatusErrorDomain...
www.b4x.com
now the audio that was generated on ios or android works on my ipad.
But now audio created on ipad doesn't work on android.
I'm using this code to record audio files
B4X:
Private Sub btnVoiceMessageStart_Click
StartRecording
End Sub
Sub StartRecording
Try
audioMessageName = generateAudioMessageName
recorder.Initialize(shared, audioMessageName & ".WAV", 44100, True, 16, False)
recorder.Record
Catch
Log("StartRecording " & LastException.description)
End Try
End Sub
Private Sub btnVoiceMessageStop_Click
Try
recorder.Stop
Log("StopRecording OK")
Catch
Log("StopRecording " & LastException.description)
End Try
'and ftp logic
End Sub
when I download this file using ftp on android, it shows the file length 5000+ or other strange large numbers, and infinitely calls the method Sub MP_Complete
screenshot of this error
A very simple example to demonstrate the error
Attachments
Last edited: