You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to play tracks from my local file system using react-native-track-player, but getting no audible audio play on the Android device that I am emulating and testing on. Plus, no error feedback on Metro or React Native Debugger.
What I Tried:
I have tried several audio formats and local directories, but still not getting past "ready" PlaybackState in TrackPlayer.addEventListener
I could confirm that the audio files do exist in the directories listed above, via Android Studio or File Explorer.
TrackPlayer.getActiveTrack() does pick the 1st item in the array passed to TrackPlayer.add() , but still no audible play.
Having RNN and RNGH installed, I wrapped all the View registries with Navigation.registerComponent() and gestureHandlerRootHOC(). Not sure if there are lib conflicts, but for RNTP, I only used TrackPlayer.registerPlaybackService(() => PlaybackService)
**How I can Help:**
- Have you investigated the underlying JS or Swift/Android code causing this bug?
- If it is an overlook on my side, can you give some pointers about how to solve?
The text was updated successfully, but these errors were encountered:
On a quick skim, it seems you did not use MediaStore.Files (ie. file:///data/user/0/audiopath...) collection, but a directory that would look like file:///storage/emulated/0/Download/..., correct?
I'm just confirming, because someone had mentioned in one of the comments that they were able to use MediaStore.Files as the RNTP audio URL, without fully illustrating their solution. The thing is, I would much rather store the audio in one of the following directories:
Possible Bug:
I want to play tracks from my local file system using react-native-track-player, but getting no audible audio play on the Android device that I am emulating and testing on. Plus, no error feedback on Metro or React Native Debugger.
What I Tried:
I have tried several audio formats and local directories, but still not getting past "ready"
PlaybackState
inTrackPlayer.addEventListener
file:///data/user/0/audiopath...
file:///storage/emulated/0/Android/data/audiopath...
file:///storage/emulated/0//Download/audiopath...
I read through all RNFS, RNFetchBlob, RNFB related issues in this lib, but nothing helped.
Code To Reproduce:
Current Status:
TrackPlayer.getActiveTrack()
does pick the 1st item in the array passed toTrackPlayer.add()
, but still no audible play.Navigation.registerComponent()
andgestureHandlerRootHOC()
. Not sure if there are lib conflicts, but for RNTP, I only usedTrackPlayer.registerPlaybackService(() => PlaybackService)
Env Info:
The text was updated successfully, but these errors were encountered: