I am currently trying to develop a web app that would generate playlists and have them play back. The application also needs to periodically control the flow (i. e. pause, play, etc). That being said, the only thing that occurred to me was to have the music play directly on the web application. However, I am not sure if this is possible with Spotify's API. I have looked into the Spotify widget but I think that offers only previews.
Would it be possible to have a small instance of Spotify running in my web application? If so, how?