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.
Related
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)
I want to write a google chrome extension that allows the user to play/pause Spotify desktop player from their chrome.
Is there an API for this? A REST API that routes the request through Spotify servers to the desktop player may have a little delay but better than nothing.
Any ideas?
PS. I don't want to control the web player and Remote control API for Spotify? this not my answer
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
Could you please help me this point
Is there any way to control track playback using web controlls for example I have
play
on my webpage
is there a way to stop playback with something like
stop
go to next track with
next
or something lke this or any other way
thanks in advance
No, this is not possible with Spotify Uri's, it is however possible to add the Spotify Play Button to your website, the Spotify Play Button supports songs, albums and playlists. You could also try to find out how it works and you might be able implement it that way.
https://developer.spotify.com/technologies/spotify-play-button/
I found a node module that may help!
https://www.npmjs.com/package/node-spotify-webhelper
You can get the status of the Desktop Player and you can control it.
Pause, Play etc
I don't know if you can do next or prev I am trying to find myself for this.
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.