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

Does the Spotify API stream advertisements as well

I am developing an Application which has a feature for searching and playing a song from spotify using the Spotify API. This is my first time using this API and wanted to know would the user (who is listening to the song) hear an audio…
user1386101
  • 1,945
  • 1
  • 14
  • 21
0
votes
1 answer

Different amount of frames for same track

In the jukebox.c example of libspotify I count all frames of the current track in the music_delivery callback. When end_of_track is called the frames count is different each time I played the same track. So end_of_track is called several seconds…
dnlkng
  • 829
  • 1
  • 10
  • 16
0
votes
1 answer

Does the LibSpotify on android gives PCM in different format than Linux

I am trying to integrate libspotify on Android. It looks like the raw PCM data I obtained from android is different from the raw PCM I obtained on ubuntu. For testing purposes I tried to store the PCM file and played it using audacity. In Ubuntu it…
Karthik
  • 2,282
  • 2
  • 22
  • 23
0
votes
2 answers

On ios7, Spotify Login with Facebook View shown below Navigation Item

So, I have this problem, basically the view controller appears below the navigation controller. This happens a lot in iOS 7, however, in this case I haven't been able to fix it with just self.edgesForExtendedLayout = UIRectEdgeNone, because I don't…
Alex
  • 7,432
  • 20
  • 75
  • 118
0
votes
1 answer

libspotify - There was an error generating your application key

It appears that the libspotify page is once again no longer able to generate application keys. When trying, either via Firefox or Internet Explorer, the page reports that "There was an error generating your application key". Is the site down…
0
votes
1 answer

SIGSEGV in Android wrapper for libspotify

I have used the Psyonspotify code as the framework for integrating libspotify into my application. I stripped out a lot of the code as my application only needs to query tracks and create playlists, but the initialisation and run loop code I have…
JohnMark13
  • 3,709
  • 1
  • 15
  • 26
0
votes
1 answer

Playlist loaded property is YES but playlist.items have null items inside

I'm using the following code to load a playlist -(void)loadPlaylist:(NSString *)playlistURI withCompletionBlock:(spotifycompletionWithData)completionBlock andfailed:(failedBlock)failedBlock { NSURL *playlistURL = [NSURL…
Gilad
  • 43
  • 9
0
votes
1 answer

Failed to build spotify "spshell" example

Specifically, I am trying to log in through the spshell example given in the spotify docs. I'm pretty sure Im including all of the relevent files (spshell.h, cmd.h) but the following code gives me the error LNK2001: unresolved external symbol: int…
0
votes
1 answer

How can i load an image from a playlist without loading the whole playlist?

i wanted to know if there is another way i could load the playlist image instead of loading the whole playlist and then fetch the image, i know that on the web platform you have a function that called imageFor and you can insert a playlist URI and…
Gilad
  • 43
  • 9
0
votes
1 answer

Login to a spotify account using libspotify on windows?

My problem is that I can enter login credentials that aren't correct but I still get a successful login. My code looks like this. Even If I just slam on the keyboard for my username and password, it still tells me that I have successfully logged…
0
votes
1 answer

Search by artist using libspotify on windows?

The api is very poorly documented and I am very confused. The method sp_search takes parameters (sp_search* search, int index). How do I create an sp_search object?
0
votes
1 answer

How to resume spotify player playback after interrupt when app is in background?

I have an app which plays Spotify track. It works perfectly when app moves to background but when it get interrupted by 'call' or 'iOS pop-ups' it stops playing. I have added Required background modes to App plays audio in .plist. How to resume…
Rahul Mane
  • 1,005
  • 18
  • 33
0
votes
1 answer

Is there any way to download('make available offline') an SPTrack/SPAlbum without it being in a Playlist?

This is just a very basical question, because I try to implement a library in my app. So is there any way to download('make available offline') an SPTrack/SPAlbum without it being in a Playlist and if yes, how? Will I have to make a kind of…
user2456014
  • 355
  • 1
  • 4
  • 13
0
votes
1 answer

Does Spotify and cocoalibspotify apps share a common offline file repository?

Can an app using cocoalibspotify access offline files that were made available offline through the iOS Spotify app or a separate app with libspotify, or does libspotify use a separate offline file repository for every app which incorporates it? I.e.…
Willem
  • 1,094
  • 1
  • 12
  • 23
0
votes
1 answer

Libspotify: There was an error generating your application key

I have a premium Spotify account and I am trying to generate an application key to use with libspotify. I am doing this using the form here: https://developer.spotify.com/technologies/libspotify/request-key/, but the generation of the key always…
kaloianm
  • 143
  • 1
  • 6