Determining currently playing spotify playlist? - spotify

I'm current building a spotify playlist app. There are currently multiple playlists that surface on one page, but when a user loads a playlist, I'd like to update the one subscribe button on the page with the playlist that's currently playing.
I'm able to use the player model to determine the currently playing track. What's the best way to do the same for the playlist?

Unfortunately, at the moment user playlists aren't accessible through the Spotify Apps API unless the user directly provides them to you by dropping them on your application. This includes seeing which playlist is currently playing, if any.

Related

How to use Spotify Search Service in Xcode

I am new to Swift and the APK environment and currently the app loads a playlist that I have given it. But how can I have the user select a song from the Spotify Search Service and have the app play the single track instead of playing through a playlist?
project link: https://drive.google.com/file/d/0Bx-U3vtX9ZWDSGtXRFdBekpWZkE/view?usp=sharing

Play full spotify track inside my own website using spotify web api

So I was taking a look at the spotify web api and it apparently allows you to play a preview of the song, but I was wondering if there is any way to play the full spotify song without having to open up the official spotify web player or desktop app.
Thanks
Update: There is a now a way to play full tracks! Read more at Spotify's Developer site, and #arirawr's answer to this question.
Previous answer: No, there's currently no way to play the full song using the Web API. If you want full tracks to be playable from a website, you can use the Spotify Play Button. If you want to build a mobile application, you can do playback of full tracks using the Android and/or iOS SDK.
Update from the future: there is now a way to play full tracks in the web: https://beta.developer.spotify.com/documentation/web-playback-sdk/
The Web Playback SDK is client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser via Encrypted Media Extensions. It’s the same technology we use to power our Web Player experience.
Some things you can do with the Web Playback SDK:
Create a new player in Spotify Connect
Stream an audio track in supported browsers
Get metadata for the current track
Get metadata about the user’s listening session
Control local playback (pause, resume, volume, etc)

Use spotify app in background with API

I have a spotify app that I am intereacting with using my website, doing things like adding to playlist and playing.
However I want this to happen in the background rather than popping up the app each time I add a track to a playlist. Anyone know if there's a way to do this?
Unfortunately there is no support for background Spotify Apps, so you need to keep your app opened to prevent it from being unloaded.
There is more information about this on the Spotify Developer Guidelines.

Remove a track from a spotify playlist

I'm writing a Spotify app. It generates a playlist of songs which appear onscreen using the default playlist view. How can I allow the user to go in and delete songs from this list? Selecting a track and pressing the delete button does not do it.
Thanks
Bob
I cannot understand what you mean. Please share screenshots / code of what you are doing. Moreover, what is the "default playlist"? Do you mean the play queue? I have also written an application that edits playlists but do not have the problem you describe. Remember also to specify what API version you are using.
Giacecco

Spotify trackset link on iPhone

I have put together a web app that creates a list of tracks that can be played in Spotify using a spotify:trackset link, as suggested in https://stackoverflow.com/a/12218041/51034.
When following the link on my iPhone, it switches to the Spotify app, but then I get an error claiming that it can't open this type of link on the device.
Is there any other way to link to a set of tracks on a mobile device?
The Spotify iOS client doesn't support tracksets at the moment — the only way to get a list of tracks into the client is via a playlist.

Resources