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

How to search for a track? #59

Open
akadebnath opened this issue Nov 7, 2020 · 3 comments
Open

How to search for a track? #59

akadebnath opened this issue Nov 7, 2020 · 3 comments

Comments

@akadebnath
Copy link

I want to search tracks by title, and get the track number.
Then play the track with the track number.
How can we do that?

@NeoLegends
Copy link
Member

NeoLegends commented Nov 7, 2020

Find out the track‘s ID using the Web API and then pass it to cordova.plugins.spotify.play.

This plugin only concerns itself with playback. For search et al use the Spotify Web API.

@akadebnath
Copy link
Author

That is what I am asking. How to find a track's ID? The examples does not show any method to do it.

@leolabs
Copy link
Member

leolabs commented Nov 7, 2020

To do that, you'll need to query Spotify's Web API. The Spotify module for Cordova is only responsible for playback, the rest is handled by the Web API.

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

No branches or pull requests

3 participants