cordova-spotify icon indicating copy to clipboard operation
cordova-spotify copied to clipboard

How to search for a track?

Open akadebnath opened this issue 5 years ago • 3 comments

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?

akadebnath avatar Nov 07 '20 03:11 akadebnath

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.

NeoLegends avatar Nov 07 '20 15:11 NeoLegends

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

akadebnath avatar Nov 07 '20 17:11 akadebnath

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.

leolabs avatar Nov 07 '20 17:11 leolabs