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

How to use struct sp_audio_buffer_stats

How do you go about using sp_audio_buffer_stats from the libspotify api (I'm modifying the jukebox example)? I don't understand how to fill in the stutter and samples variables, or where to declare it, etc. Does it come from the buffer part of the…
user2565444
0
votes
1 answer

Libspotify print the content of each frame in the music_delivery method

I'm using libspotify and I spent a lot of time searching in google and in the documentation about the callback method : music_delivery(sp_session *session, const sp_audioformat *format, const void *frames, int num_frames). I'm trying to print the…
Sébastien
  • 321
  • 2
  • 10
0
votes
1 answer

spotify session callback get_audio_buffer_stats

I'm trying to make a program in Spotify that collects the audio data. I saw in the API that there is a callback get_audio_buffer_stats, which has stutter and samples. I tried adding that to the program (I am just modifying the jukebox example),…
user2565444
0
votes
1 answer

How to use the libspotify api?

This is the version of libspotify which I have download:libspotify-12.1.51-win32-release.There are an example named "spshell". when I test the track playing and sp_session_player_play(g_session, 1) be called,I can not heard any voice. Another…
0
votes
1 answer

Spotify changing C to VB.net

I am needing this: sp_search* sp_search_create ( sp_session * session, const char * query, int track_offset, int track_count, int album_offset, int album_count, int artist_offset, int artist_count, int …
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
1 answer

Cannot install PySpotify module for python due to gcc failed

I have been trying to install the pySpotify module. I already installed libspotify and added the libspotify.dll folder to the path. When I try installing pyspotify as a next step I am getting the following error messages. Any ideas? I am using…
Paul Miles
  • 39
  • 1
  • 6
0
votes
1 answer

spotify permanent SP_ERROR_UNABLE_TO_CONTACT_SERVER on login

I am trying to implement a client for spotify using libspotify library. Starting from some point I am receiving SP_ERROR_UNABLE_TO_CONTACT_SERVER in login callback. Prior to this time, everything worked fine with the same codebase. Did anyone face…
agrinevsky
  • 31
  • 1
0
votes
1 answer

Segfault using sp_session_logout after playing track

I'm getting a segmentation fault using if I try to call sp_session_logout after playing a song. I can't really say much about the segfault, as I don't have the symbols, With the following code the segfault occurs every time after logout is…
Ivan Kelly
  • 204
  • 1
  • 3
0
votes
1 answer

Get full song audio data from libspotify

I'm using pyspotify, a python wrapper for libspotify to play songs from Spotify. I'd like to do some audio analysis on the whole song before starting playback, is there a way to get the audio from the whole song at once? The music_delivery callback…
Alexander Sagen
  • 4,028
  • 1
  • 18
  • 15
0
votes
1 answer

Spotify Web API for windows phone

I am developing Windows Phone 8 application, in which I want to get recommended tracks of the user of Spotify. I would like to add these tracks of the user into favourites of my application. I need to login and get the track list and details which…
Manmath
  • 66
  • 6
0
votes
2 answers

Searching for playlists in libspotify, can't seem to get metadata from the results

Not sure the proper handling of searching playlists, have no problem with artists, tracks , albums. The developer resources seem to not include this and of course that's the part I seem to be struggling with.…
Evan
  • 157
  • 11
0
votes
1 answer

Libspotfiy, registering mulitple callbacks on the same handle

Is it valid to add multiple callbacks to a libspotify handle? ie: ie sp_playlist_callbacks pl_callbacks1 = { .tracks_added = &tracks_addedA, }; sp_playlist_callbacks pl_callbacks2 = { .tracks_added =…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
0
votes
1 answer

How can I obtain the mosaic image for a playlist using CocoaLibSpotify?

From the header documentation of SPPlaylist for it's image property: Returns the custom image for the playlist, or nil if the playlist hasn't loaded yet or it doesn't have a custom image I have an array of loaded SPPlaylists however the image…
followben
  • 9,067
  • 4
  • 40
  • 42
0
votes
1 answer

In PySpotify, trying to remove a track from a playlist without knowing the position of the track in the playlist

I am trying to remove a track from a playlist and the information I know about the track is the spotify URI, the name of the track and the artist. However, I don't know the position of the track in the playlist. The function to remove the track is…
-1
votes
1 answer

Getting a Track from a Spotify ID using the libspotify,dll

I can find tracks using the libspotify.dll just fine. But if I have a Spotify Id like: 7KEYPk9d9hc1rrHVmztrUS. It does not matter if I set "track:" in front. Actually I am using a .Net wrapper of the dll but that does not give me any results when I…
1 2 3
14
15