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

Communicating between a C- and a PHP-Program

I'm writing a program for my Raspberry Pi, that consists of two main parts: A C-Program that uses the Spotify-API "Libspotify" to search for music and for playing it. A PHP-program, running on an apache2-Webserver, to control the Spotify-program…
Ansichtssache
  • 111
  • 1
  • 2
  • 9
0
votes
2 answers

How to get the current playback position with libspotify?

I have been writing Spotify support for a project using libspotify, and when I wanted to implement seeking, I noticed that there is apparently no function to get the current playback position. In other words, a counterpart to…
dv_
  • 1,247
  • 10
  • 13
0
votes
1 answer

I can't run cocoalibspotify's sample code properly

I got cocoalibspotify at https://github.com/spotify/cocoalibspotify When I run the project, an alert come up saying "Login Details Missing. The username, password or both are missing. Please consult the testing part of the readme file." Before alert…
Cocominap
  • 3
  • 2
0
votes
1 answer

Using Spotify APIs for a web application

I am a little confused with libspotify I want to include Spotify in my web application. I plan to use the java wrapper for this (https://github.com/nvdweem/libjahspotify). I want to know if it is ok to do it this way and that it is not only to be…
kosta
  • 4,302
  • 10
  • 50
  • 104
0
votes
1 answer

about playing songs by Cocoalibspotify, does app download the cache of songs like mp3, DRM format that I can do some remix of it?

about playing songs by Cocoalibspotify, does app download the cache of songs like mp3, DRM format that I can do some remix of it ? If the answer is NO, what kind of streaming format send while playing Spotify's song from Cocoalibspotify ?
Bruce
  • 3
  • 1
0
votes
1 answer

CocoaLibSpotify waitUntilLoaded rarely returns loaded items

I've been building an ios app using cocoalibspotify for some time without any problems, but since yesterday both of my apps don't get any loaded data when calling the waitUntilLoaded method. Here is a code example of how I call it: [[SPSession…
0
votes
1 answer

SPPlaylist items as SPTracks not loading (consistently)

I've been struggling with this for a while now and was looking around for some advice from anyone who's worked with CocoaLibSpotify on iOS (iOS 7 to be exact). I'm trying to load all the (SPTrack) items in a SPPlaylist. I've looked though the…
Baza207
  • 2,123
  • 1
  • 22
  • 40
0
votes
1 answer

Android Spotify : Creation of .so file of spotifywrapper using JNI in Android gives Undefined Reference error

I am trying to write a wrapper file,in order to use spotify API's in our android application.According to the preceding link : http://datababel.wordpress.com/2013/11/22/spotify-eclipse-and-the-android-ndk-1/ I created libspotify.so.I am trying to…
Ashish
  • 377
  • 1
  • 3
  • 9
0
votes
1 answer

Enable sharing Spotify listening activity on Facebook via API?

Is it possible to enable sharing listening activity with Facebook from the Spotify API? SPSession seems to have functions around scrobbling: -(void)setScrobblingState:(sp_scrobbling_state)state forService:(sp_social_provider)service…
Mark
  • 39,169
  • 11
  • 42
  • 48
0
votes
1 answer

pyspotify working locally but not production

I've set up a Django project and I'm integrating it with version 2.x of Mopidy's pyspotify. I wrote a piece of code that checks for a Spotify session instance, creates one if there isn't one and then gets the name of a track from a Spotify URI. The…
Nanor
  • 2,400
  • 6
  • 35
  • 66
0
votes
2 answers

Trying to call a function in C from Java using JNA

I have written some code in C which I want to call from Java. What I have done is I have a function in my c code which calls another c function from libspotify and I am trying to write a Java Wrapper using JNA to call my c function. I have written…
user1386101
  • 1,945
  • 1
  • 14
  • 21
0
votes
1 answer

iPhone app with Spotify crashes after resigning .ipa file

When I try to resign .iPA file with different key and mobile provisioning profile my App crashes due to Spotify. Is that because of "appkey.c" file or is there any relation between Spotify credentials and Apple provisioning profiles and keys which…
ios
  • 6,134
  • 20
  • 71
  • 103
0
votes
1 answer

Loading linux libraries inside FreeBSD program (Python script)

I'm trying to use some Linux libs under FreeBSD/PC-BSD, and I have some doubts about how Linux binary compatibility on FreeBSD works. I have installed the required kernel module for this task, with the additional linux_base package containing the…
azkotoki
  • 2,357
  • 2
  • 22
  • 26
0
votes
1 answer

Is there any option for collections in Cocoalibspotify(Spotify IOS)?

i can add tracks into playlist from the following code [[SPSession sharedSession] playlistForURL:playList.spotifyURL callback:^(SPPlaylist *playlist) { [SPAsyncLoading waitUntilLoaded:playlist timeout:kSPAsyncLoadingDefaultTimeout…
Mani murugan
  • 1,792
  • 2
  • 17
  • 32
0
votes
1 answer

Notes within Spotify collaborative playlists

I'd like to allow Spotify users to post a small note along with a song when they post in a collaborative playlist. Is this possible with a Spotify app, or will I have to implement something else? Thoughts?