Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add more than 1 tract in react native track player #2371

Open
mrwebninja opened this issue Sep 15, 2024 · 3 comments
Open

Can't add more than 1 tract in react native track player #2371

mrwebninja opened this issue Sep 15, 2024 · 3 comments
Labels

Comments

@mrwebninja
Copy link

mrwebninja commented Sep 15, 2024

I am developing a music player app with React Native Expo & to play music using the library react-native-track-player

I am having issues with adding more than 1 track
if I add just a single track with this code working fine

await TrackPlayer.add([selectedTrack])

but when try to add multiple tracks(array of tracks), getting issue

code

 await TrackPlayer.add(tracks)

error
[Error: url: The URL cannot be empty]

even I try
await TrackPlayer.setQueue(tracks)
but same error

getting data with REST API & checked there is mp3 URL at evey url key

I tried to much but didn't figure out issue

package json

"@react-navigation/native": "^6.0.2",
 "expo": "~51.0.28",
 "expo-router": "~3.5.23",
 "react-native-track-player": "^4.1.1",

Thanks in advance for help

@mrwebninja mrwebninja added the Bug label Sep 15, 2024
@lovegaoshi
Copy link
Contributor

check ur URL again..?

also dont skip the issue template

@mrwebninja
Copy link
Author

check ur URL again..?

also dont skip the issue template

@lovegaoshi yes I check the URL & with same data add single track working fine, & pls explain what do you mean by also dont skip the issue template

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Sep 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants