Questions tagged [libspotify]

The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service.

Libspotify
The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service. Hopefully, this will enable and inspire you to build some really cool stuff. We’re looking forward to seeing what you can come up with.

Documentation
The API documentation is available online. The libspotify distribution also contains the documentation, as well as a few code examples. There is also an FAQ available.

Application keys
Please login with your Spotify Premium account to apply for an application key.

Download
Libspotify is available for Windows, Mac OS X (x86 / x86_64), iOS, and Linux (x86 / x86_64 / ARM).

Download the file and unpack it with your favourite extractor. On the command line for most Linux distributions, you can use tar xzf libspotify-*.tar.gz to extract it. You will now have a directory called something starting with libspotify-. Inside, you should find a README worth at least skimming through.

User experience guidelines
The following guidelines have been carefully developed to provide our users with a familiar and friendly experience across all platforms, and to maintain the Spotify look & feel that we all know and love. Please ensure that your application follows them closely.

Branding
See the Terms of Use on how to use these logotypes.

Branding in graphical user interfaces

Terms of Use
We need to protect users, content providers, the Spotify trade marks and our software and service while at the same time enabling you to create applications. We therefore require you to comply with some basic rules. You should also note our trade mark guidelines.

Furthermore we want to let you know that the use of our APIs under these terms is for non-commercial use only: they are not intended to allow you to sell any software or devices based on these APIs. If you would like to make use of Spotify in a commercial way, then please contact our Partner team before you engage in any work.

Region-specific Terms of Use can be found here:

Third party licenses
Several fantastic pieces of free and open-source software have really helped get Spotify to where it is today. A few require that we include their license agreements within our product. Consider it done. As we enjoy giving credit where it's due, we included the entire list below. This means you can not only see which software we've been using, but the terms of the licenses too. A big thanks from all of us at Spotify to the smart people behind the fantastic programs listed. Rock on!

218 questions
0
votes
1 answer

Register(?) libspotify.dll

Trying to play with some libraries/wrappers for libspotify(.dll) using C# on a Windows machine. I do how ever get errors on this dll. I have the DLL in the same directory as the exe and it is found. The exceptions are thrown in swedish, but it says…
gubbfett
  • 2,157
  • 6
  • 32
  • 54
0
votes
1 answer

Meaning of "zero configuration credntial blob"

I am planning to use spotify embedded SDK to develop something. But in few of the API's of .h file I see "zero_conf_blob" as parameter. Can anyone please explain me what is the meaning of "blob" in spotify app?
user622630
  • 191
  • 1
  • 3
  • 7
0
votes
3 answers

Cannot login offline

I can login with username and password when internet is connected. If I disconnect internet when logged in I can still listen to offline lists. If I reconnect internet I get full functionality again without any actions on my part. But when internet…
bes51659
  • 28
  • 4
0
votes
1 answer

Shared Authentication between Spotify Libraries

After the new update to the Spotify iOS SDK and Web API I have been working with the new libraries (they're great!) However I am wondering how does one authenticate a user once, say on iOS, and then share this authentication token to the other…
0
votes
1 answer

C# Spotify App works from within VS but not when installed. sp_session_playlistcontainer behave differently

I was quite happy with my spotify app on top of libspotify 12.1.51 and just made a *.msi and installed it on my system. For some reason I do not get my playlists anymore. What I do get is a lot of "PlaylistAddedCallback" callbacks after…
bes51659
  • 28
  • 4
0
votes
1 answer

sp_user_display_name always returns canonical name, even when user is loaded

Hello Spotify community =) I've been beating my head against this for a while. When I ask libspotify for the owner of a playlist via sp_playlist_owner, I am never able to get the user's display name out from sp_user_display_name. In the API, it…
paddy
  • 60,864
  • 6
  • 61
  • 103
0
votes
1 answer

Get user's "Your Music" on Spotify

Is it possible to get "Your Music" which contains playlists, songs, and albums from Spotify using Cocoalibspotify? Right now I am only able to get playlists from "Your Music" using: [SPSession sharedSession].userPlaylists.flattenedPlaylists.
SleepNot
  • 2,982
  • 10
  • 43
  • 72
0
votes
1 answer

Is ca_certs_filename part of sp_session_config struct or not?

According to doxygen generated data on developer.spotify.com there is a ca_certs_filename in the sp_session_config struct. This is not found in struct defined in api.h Does it exist or not? Is there a version incompatibility?
bes51659
  • 28
  • 4
0
votes
1 answer

Cocoalibspotify how to call method when SPPlaylist changes

I'm creating an a Spotify iOS app using Cocoalibspotify that essentially allows for live playlist sharing. I do this by having the user add a playlist and set it as collaborative. So I have 2 questions: 1) I want the app to notify the user when a…
Jacob D
  • 229
  • 2
  • 5
0
votes
0 answers

sp_session_process_events. Why do I get "attempted ro read protected memory" (once)?

When I start my C# application I occasionally get a single warning from visual studio. It is not an exception, because the catch is not released and the program works fine afterwards. It seems to be timing related as the problem comes and goes…
bes51659
  • 28
  • 4
0
votes
1 answer

Spotify Metadata API + libspotify

I'm studying the Spotify Metadata API and currently, the only data that are available are its music catalogue. I would like to be able to pull a Spotify user's playlists/most frequent/most recent played tracks or artists. And by looking at the…
DexterBrylle
  • 3
  • 1
  • 7
0
votes
1 answer

Why use nextTimeout in sp_session_process_events()?

I am writing a Spotify app in C#. I am currently verifying that the sp_session_process_events() call is working properly. Trying to be very scientific about it, I've been using the out parameter nextTimeout to try and prevent the need for the lib to…
bes51659
  • 28
  • 4
0
votes
1 answer

Getting currently playing song from spotify with libspotify

I'm trying to make an application for windows that gets the current playing song on spotify. I have succeeded in doing this by just reading mainwindowtitle from the process and cutting off the first 10 letters on that string, but I want to see if…
krt16
  • 3
  • 2
0
votes
1 answer

Android Libspotify Image Loading SIGSEGV

So this particular libspotify error has me a little stumped. My app basically loads a users playlists, and allows users to go into those playlists at which time it populates the track data. So the problem lies in the function: sp_image* image =…
James
  • 93
  • 1
  • 1
  • 5
0
votes
1 answer

CocoaLibspotify framework

I have developed an application using libspotify.framework app is working well but It gives an error at the time of submission on itunes error is "Invalid Signature- the nested app bundle Spotify at path…
Ashish
  • 25
  • 8