cordova-spotify
cordova-spotify copied to clipboard
How to search for a track?
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?
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.
That is what I am asking. How to find a track's ID? The examples does not show any method to do it.
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.