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

TrackPlayer.remove API doc says it takes Track|Track[] but it appears to require [number] #2382

Open
eedeebee opened this issue Oct 9, 2024 · 2 comments

Comments

@eedeebee
Copy link

eedeebee commented Oct 9, 2024

The docs say Track or Track[] but Typescript says it wants a number[].

The way our app works, I'd prefer either Track[] or an array of track IDs instead of indexes.

This is in 4.0 but could be in 4.1 as well.

@eedeebee eedeebee added the Bug label Oct 9, 2024
@lovegaoshi
Copy link
Contributor

number[] is correct. doc is probably high/unmaintained for a while.
Any Track[] implementation requires u to do TP.getQueue and find indices manually. u might as well DIY.

Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants