Open kirtan96 opened 4 years ago
same problem how to fix it
@anujec722, I had the same problem and I solved just setting the VIBRATE permission in AndroidManifest.xml
.
just add
<uses-permission android:name="android.permission.VIBRATE"/>
and build again.
I have not tested that in iOS but in Android works fine 👍
maybe the problem is for another part, in my case besides playing a sound I also make a vibration
SoundPlayer.playSoundFile("beep", "mp3"); Vibration.vibrate(500);
Seems like the same thing we're experiencing in #100, with SoundPlayer.loadSoundFile
I have the same issue
I have the same issue
I added my mp3 into android/app/src/main/res/raw and it worked.
Describe the bug BUG: Attempt to invoke virtual method 'void android.media.MediaPlayer.setOnCompletionListener(android.media.MediaPlayer$OnCompletionListener)' on a null object reference
SoundPlayer.loadUrl(file.location);
Trying to play an audio file from Android device, specific location on emulator: "content://com.android.providers.downloads.documents/document/raw%3A%2Fstorage%2Femulated%2F0%2FDownload%2FTest.mp3" but I get the following error: