Cordova Spotify SDK Plugin
An Apache Cordova plugin providing access to the Spotify SDK for iOS and Android.
Features
This plugin provides a very simple and atomic layer over playback functionality of the Spotify SDK. It allows you to play Spotify tracks via their URI. Metadata and authentication functionality has deliberately been left out in favor of the Web API and our Spotify OAuth 2 plugin cordova-spotify-oauth.
Installation
cordova plugin add cordova-spotify
Note: Make sure your installation path doesn't contain any spaces.
Examples
The plugin is very simple to use. All methods can be called at any time and there is no initialization step. The plugin performs all necessary state changes automatically. All methods documented in the API documentation are exported under the global cordova.plugins.spotify
-object.
Play some good music
cordovapluginsspotify ;
React to user pressing pause button
cordovapluginsspotify ;
Display current playing position
cordovapluginsspotify ;
React to events from native SKDs
cordovapluginsspotify
Contributing
Pull requests are very welcome! Please use the gitmoji style for commit messages.