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
The behaviour is random, I can successfully and quickly turn on 3-5 tracks and everything hangs, but it can also hang immediately on the first track. The behaviour is not clear to me, it works very randomly
I know this isn't a new problem, I've been seeing threads since ~20 years. But I don't see a normal explanation or solution
constactiveTrack=awaitTrackPlayer.getActiveTrack()if(activeTrack){awaitTrackPlayer.stop()awaitTrackPlayer.reset()console.warn('Old track has been reset');}awaitTrackPlayer.add({url: episode.recordUrl,title: episode.title,artist: episode.album.author,album: episode.album.title,artwork: process.env.EXPO_PUBLIC_API_URL+episode.image,id: episode.id,contentType: 'audio/mpeg'}).then(async()=>{console.warn('New track has been added');awaitTrackPlayer.play()});
Environment Info:
Paste the results of npx react-native info
Paste the exact react-native-track-player version you are using
Real device? Or simulator?
What OS are you running?
Packages version:
"react-native": "0.74.1",
"react-native-track-player": "^4.1.1"
IOS Simulator 17.5
Mac OS
The text was updated successfully, but these errors were encountered:
I had the same issue on my end. Only sometimes does it get stuck in a buffering state, but when it does clearing the queue and playing another track doesn't fix the issue.
The behaviour is random, I can successfully and quickly turn on 3-5 tracks and everything hangs, but it can also hang immediately on the first track. The behaviour is not clear to me, it works very randomly
I know this isn't a new problem, I've been seeing threads since ~20 years. But I don't see a normal explanation or solution
My init player code
How I switch tracks
Logs
Environment Info:
Paste the results of
npx react-native info
Paste the exact
react-native-track-player
version you are usingReal device? Or simulator?
What OS are you running?
Packages version:
"react-native": "0.74.1",
"react-native-track-player": "^4.1.1"
IOS Simulator 17.5
Mac OS
The text was updated successfully, but these errors were encountered: