spotify

spotify session callback get_audio_buffer_stats

99封情书 提交于 2020-01-17 03:57:48
问题 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), but it only ever prints 0 for stutter and samples, even when I turn off the wifi and wait for the song to stop playing. And by adding the code, I mean that I made a callback function for it, and I added it to the session callbacks. Am I missing

Spotify Play Button - autoplay?

末鹿安然 提交于 2020-01-13 06:26:11
问题 I am trying to integrate Spotify Play Button into ThingLink Spotify tag so that when the iframe loads, it starts playing automatically. Is there a way to do that with some parameter? The functionality would be similar to Soundcloud & Vimeo players here: http://www.thinglink.com/scene/251225958915244034 Without the autoplay, user would have to click on Play twice, which wouldn't be that good of UX. Thanks! -Albert 回答1: There is no autoplay functionality at present. Autoplay isn't really what

SPSearch in CocoaLibSpotify

泪湿孤枕 提交于 2020-01-13 06:16:27
问题 I'm looking at CocoaLibSpotify, and trying to get a simple search request working. I make the request like this: SPSearch *search = [[SPSearch alloc] initWithSearchQuery:@"Adele" inSession:[SPSession sharedSession] ]; And am then polling for the search to return with: [search searchInProgress] But I never see searchInProgress return a NO - ie. the search does not appear to ever complete. I've searched through the documentation and examples but it hasn't helped me to understand how to use the

SPSearch in CocoaLibSpotify

安稳与你 提交于 2020-01-13 06:16:19
问题 I'm looking at CocoaLibSpotify, and trying to get a simple search request working. I make the request like this: SPSearch *search = [[SPSearch alloc] initWithSearchQuery:@"Adele" inSession:[SPSession sharedSession] ]; And am then polling for the search to return with: [search searchInProgress] But I never see searchInProgress return a NO - ie. the search does not appear to ever complete. I've searched through the documentation and examples but it hasn't helped me to understand how to use the

Background Audio with cocoalibspotify

僤鯓⒐⒋嵵緔 提交于 2020-01-12 03:48:05
问题 I've properly enabled background audio for my app (in the plist). Playing the next track after the current is complete using SPPlaybackManager in the background (when the phone is locked/off) doesn't work. When the current track ends, and the audio stops, the app won't begin playing the next track until the phone is unlocked and my app becomes active again. How do I fix this? Here is a snippet of code I'm using to begin the playing of the next track. I observe that the current track becomes

Integrating the Spotify Android library

好久不见. 提交于 2020-01-11 09:12:32
问题 So I wanted to integrate the spotify library into an android app. I went to https://developer.spotify.com/technologies/libspotify/ and downloaded their lib libspotify-12.1.51-Android-arm-release.tar.gz Problem is that the "Android" samples bundled with the lib aren't actually android projects, they are C code, the lib is a .so file. I have basic knowledge of android ndk and jni but the documentation out there about integrating the library with android is non-existent. Can anyone provide a

“415 Error” when querying Spotify for tokens

安稳与你 提交于 2020-01-11 08:21:25
问题 I've been trying to recreate the spotify oauth connection in MeteorJS. I've gotten as far as requesting the access and refresh tokens, but I keep getting a 415 error now. Here is the relevant code: var results = HTTP.post( 'https://accounts.spotify.com/api/token', { data: { code: code, redirect_uri: redirectURI, grant_type: 'authorization_code', client_id: clientID, client_secret: clientSecret }, headers: { 'Content-Type':'application/json' } } ); I can't seem to find any other good

“415 Error” when querying Spotify for tokens

可紊 提交于 2020-01-11 08:21:08
问题 I've been trying to recreate the spotify oauth connection in MeteorJS. I've gotten as far as requesting the access and refresh tokens, but I keep getting a 415 error now. Here is the relevant code: var results = HTTP.post( 'https://accounts.spotify.com/api/token', { data: { code: code, redirect_uri: redirectURI, grant_type: 'authorization_code', client_id: clientID, client_secret: clientSecret }, headers: { 'Content-Type':'application/json' } } ); I can't seem to find any other good

Cannot use the “getSpotifyApi” function in spotify app

时间秒杀一切 提交于 2020-01-07 05:04:39
问题 No matter what we try, every time I try to call the function "getSpotifyApi" it always returns: "ReferenceError: getSpotifyApi is not defined" I'm stumped on where to go from here because I can't do anything with spotify if it wont let me use its api... All my javascript code is in tags in the index.html of my app. 回答1: If getSpotifyApi is not defined it is probably because you are using the 1.X API, which uses a different approach to include the frameworks. I would recommend you to have a

How to exchange code for token in Spotify using Poco Net Library

喜你入骨 提交于 2020-01-07 02:58:08
问题 So all of a sudden they decide I need an authorization header for Spotify Search API. My application runs in C++ using Poco Net libraries and I can't get it to work. I went through all that process of getting the "code" that I am supposed to exchange for the token. I assume this code is valid, even though I used just a totally unrelated domain then copied it of the variable that was sent to that page. See https://developer.spotify.com/web-api/authorization-guide/ This is my code that isn't