libspotify

Getting the examples in libspotify to work under Windows 7

橙三吉。 提交于 2019-12-11 13:56:27
问题 I want to get started with libspotify on my Win 7 machine but I dont have a clue on how to get it all setup so that I can even run the examples included in the pack. I have a Spotify Premium account and I have tried installing libspotify by copying libspotify.dll to c:\windows, c:\windows\system32 and to c:\windows\SysWOW64 and also changed the path variable to include the path where libspotify.dll is located but I still dont understand how to get the examples to work. I have Code::Blocks

CocoaLibSpotify - Library not loaded

旧街凉风 提交于 2019-12-11 08:19:28
问题 I've created a simple mac app that uses the Cocoa wrapper for libspotify. When I export the project as an Application and try to run it, it crashes immediately. Crash report: Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: Library not loaded: @rpath/CocoaLibSpotify.framework/Versions/A/CocoaLibSpotify Referenced from: /Users/USER/Desktop/Wunderkiste.app/Contents/MacOS/Wunderkiste Reason: image not found otool output: $ otool -L ~/Desktop

libspotify logout crashes when called from a nodeJS module

杀马特。学长 韩版系。学妹 提交于 2019-12-10 22:29:08
问题 I am trying to write a module for nodeJS which wraps libspotify. The goal is to write a webapp that allows the remote control of a device playing music from spotify. I have decided to go along the spshell example to ensure thread safety and write a "Spotify Service" in plain C that starts a seperate thread which calls all the API functions. The nodeJS module then just calls a few provided functions to interact with spotify. The code for the service can be found here: http://pastebin.com

Preventing misuse of libspotify key

有些话、适合烂在心里 提交于 2019-12-07 11:24:11
问题 The terms of use for libspotify state that the key should be stored in a secure manner. The only recommendation for storing the key that I've found is compiling your application and distributing the binary. I have a hard time seeing this as anything else than security by obscurity since the key is easily retrievable using a debugger. Is this really the approach Spotify suggests? What about if I only compile the file containing the key and distribute the rest of my application as open source?

Preventing misuse of libspotify key

江枫思渺然 提交于 2019-12-05 12:14:40
The terms of use for libspotify state that the key should be stored in a secure manner. The only recommendation for storing the key that I've found is compiling your application and distributing the binary. I have a hard time seeing this as anything else than security by obscurity since the key is easily retrievable using a debugger. Is this really the approach Spotify suggests? What about if I only compile the file containing the key and distribute the rest of my application as open source? I guess the essence of my question is this: how do I avoid breaching the ToS without requiring every

Accessing Spotify API for Multiple Artists in R

99封情书 提交于 2019-12-04 19:20:33
I have created a Client ID and Secret Key in Spotify's developer app section. I am referencing this document and want to extend this by choosing multiple artists. https://www.r-bloggers.com/the-eurovision-2016-song-contest-in-an-r-shiny-app/ In this example, they are only choosing 1 artist ID but there are some holes to this, 1) How do you obtain the artist name rather than the artist ID because I can't find a glossary key anywhere for the artist ID? 2) How do you choose multiple artists rather than just one. So for example, how do I choose Frank Sinatra and Elvis Presley? Code is below:

Spotify API: INVALID_APP_ID

青春壹個敷衍的年華 提交于 2019-12-04 18:18:08
问题 I am currently working on an android app which is implementing the Spotify API. I have all of the code connecting my app to spotify using the tutorial and have been working on my app for sometime now. When I play a song through my app after authenticating the user, it works perfectly, that is on my emulator. When I switch it over to my phone it didn't work and gave me an INVALID_APP_ID error in the android response. When I uninstalled spotify off my phone and then tried to login to spotify

Playing ohLibSpotify pcm data stream in C# with NAudio

心已入冬 提交于 2019-12-03 20:24:22
I'm trying to play raw pcm data delivered from ohLibSpotify c# library ( https://github.com/openhome/ohLibSpotify ). I get the data in the following callback: public void MusicDeliveryCallback(SpotifySession session, AudioFormat format, IntPtr frames, int num_frames) { //EXAMPLE DATA //format.channels = 2, format.samplerate = 44100, format.sample_type = Int16NativeEndian //frames = ? //num_frames = 2048 } Now i want to directly play the received data with NAudio ( http://naudio.codeplex.com/ ). With the following code snippet i can play a mp3 file from disk. Is it possible to directly pass the

Spotify API: INVALID_APP_ID

烂漫一生 提交于 2019-12-03 12:15:36
I am currently working on an android app which is implementing the Spotify API. I have all of the code connecting my app to spotify using the tutorial and have been working on my app for sometime now. When I play a song through my app after authenticating the user, it works perfectly, that is on my emulator. When I switch it over to my phone it didn't work and gave me an INVALID_APP_ID error in the android response. When I uninstalled spotify off my phone and then tried to login to spotify through my app, I was then able to play music from my phone without any crashes. So my question is how do

libspotify causing Apple App store rejection

拥有回忆 提交于 2019-12-01 08:57:15
Looks like Apple has tightened app store submissions staring May 1. I have an app that uses Spotify and have been accepted into the App Store multiple times. On a recent update, the app was rejected for the following reasons... Non-public API usage: Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice. Please update your apps and servers to associate users with the Vendor or Advertising identifiers introduced in iOS 6. Doing the following on libspotify strings libspotify | grep uniqueIdentifier returned 3 instances of uniqueIdentifier. Another