ZHChat
ZHChat copied to clipboard
Audio is not playing?
Hi Team,
We need to play audio file received from andriod, we get in 2 formats .mp3 or .aac. Both the audio format not playing in iOS with 'ZHCAudioMediaItem'. We tried to convert the same to 'm4a' and tried but no luck.
#1 - Confirm receive audio has data - we renamed local file extension to m4a - it working fine - just confirm audio is not a problem.
#2 - Please check screenshot - its print audiodata bytes so audiodata is not nil.
Any solution, Please suggest some other solutions.
convert data to m4a not fileName.aac. If u don't know what's wrong with ur code. u should check audio guide. aac is sort format not fileName.
Thanks! I renamed the received file to .m4a once downloaded but it not playing. If possible, can you share a audio conversion code would be really helpful.
Any solution for this?
did u play audio from file , not data? When u get data ,then save it to file ,then get data from file. Make sure that u get right file name. And it can really be played , like demo.
Yes, I write the data to local file with .m4a format but not player. Is it support mp3 format right or we need to consider other formats?