Audio not playing on some Android devices
After some tweaking to add the library to my project, I finally managed to make the player plays my record. Everything works fine, except that on some android device (LG G4, Android 6.0) The player won't play any sound. It works fine on my colleague's device ( which are also androids) and every iOS devices, but for some Android, it doesn't...
Any idea/solution to fix this problem?
I already tried @xstable branch https://github.com/react-native-community/react-native-audio-toolkit/issues/149 but the problem still persists 🤔
You'd better link my ticket, so the people knows what you talking about:
https://github.com/react-native-community/react-native-audio-toolkit/issues/149
You've noticed, that there was a little issue in my answer? In the second code-script, you have to choose aac-lc for sure, I had there only aac (now I fixed it).

Sadly it still doesn't work even with your fix, but what I notice is that the state on the devices that won't play sound returns state: -1
any update? I found it doesn't work on Huawei devices.
Also looking for any answers to this. I've made the above change. It looks like it is recording and records the length of the sound byte but no sound is on the file.
@xstable you are recording, but we are playing... maybe they are different?
I can record and play on iOS device. On Android, the file plays but there is no sound. I think it has recorded something based on the length of the audio file but when I listen to it, there is nothing.
I also encounter the audio playing issue on some Android devices. After rolling out my new version of app with this library, there're some users started to complain that audio play is broken.
same her even with emulator, seems playing but no voice
Any update on how to fix/ workaround? Urgent, thanks~
Same problem here
I also have this problem, state: -1 nothing seems to work on android
I have the same problem. Please help. iOS works perfectly but for android, the prepare is not working at all. No callback.
I have the same problem for Huawei phones.
使用react-native-video可解决问题
I have the same problem for Huawei and HTC phones.
Any updates on this?
I have the same problem. Please help. iOS works perfectly but for android, the prepare is not working at all. No callback.
Same problem on all android phones. Any solution?
Prepare is working for me when file is local. But prepare is not working and causing errors when audio file is remote. When I updated shouldUpdateProgressBar remote files worked again for me:
shouldUpdateProgressBar() { return this.player && this.player.duration >= 0 && Date.now() - this.lastSeek > 200; }