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

Get tracks from current playlist or album #7

Closed
DanG100 opened this issue Apr 25, 2018 · 1 comment
Closed

Get tracks from current playlist or album #7

DanG100 opened this issue Apr 25, 2018 · 1 comment
Labels

Comments

@DanG100
Copy link

DanG100 commented Apr 25, 2018

If the player is playing a playlist or album is there a way to get all the tracks in it? I can't see one, it would be very useful in order to create a UI to show the next songs that will be played.

@arirawr
Copy link
Contributor

arirawr commented Apr 25, 2018

Hi @DanG100! You can get the current context (album, playlist, etc.) from the PlayerContext. Fetching the tracks of a context is not supported in this SDK, so you would need to call the Web API for Get an Album's Tracks or Get a Playlist's Tracks. Hope that helps!

@arirawr arirawr closed this as completed Apr 25, 2018
mdelolmo pushed a commit that referenced this issue Nov 20, 2019
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