spotify

How is it possible to know what's spotify is playing from an external Android app?

自古美人都是妖i 提交于 2019-11-27 12:14:14
I just found out this settings option in Spotify for Android settings screen: "Device broadcast status - allow other apps on your device to see what you are listening to" I guess that means any other app can access what's being played via Spotify. How can this be implemented? Is there any documentation around? Thanks iamgeef Spotify has the following intent-actions: metadatachanged, playbackstatechanged, and queuechanged. queuechanged contains no extra data. playbackstatechanged has a boolean value for "playing", and a value for playbackPosition. metadatachanged contains artist, album, track,

SWIG interface to receive an opaque struct reference in Java through function argument

若如初见. 提交于 2019-11-27 04:06:28
问题 I am trying to use SWIG in order to use the Spotify API (libspotify) for Android: https://developer.spotify.com/technologies/libspotify/ I am having trouble defining the SWIG interface file to be able to successfully call the following native C function: sp_error sp_session_create(const sp_session_config * config, sp_session ** sess); Which in C would be called like this: //config struct defined previously sp_session *sess; sp_session_create(&config, &sess); But in Java I would need to call

Play full spotify track inside my own website using spotify web api

筅森魡賤 提交于 2019-11-27 02:11:10
问题 So I was taking a look at the spotify web api and it apparently allows you to play a preview of the song, but I was wondering if there is any way to play the full spotify song without having to open up the official spotify web player or desktop app. Thanks 回答1: Update: There is a now a way to play full tracks! Read more at Spotify's Developer site, and @arirawr's answer to this question. Previous answer: No, there's currently no way to play the full song using the Web API. If you want full

Opening spotify app from my iphone app

强颜欢笑 提交于 2019-11-27 01:59:04
问题 I'm pretty sure there must be a way to launch spotify iphone app from my own app. I've seen SMP app (share my playlist) doing something very similar when pushing playlist into spotify app. I guess it should be by using something like: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"spotify://search:muse"]]; As you can see, I want to be able to make spotify search for a specific keyword. The problem is I don't really know the spotify url scheme, if there is such thing

Getting Spotify API access token with Node.js/Express.js

北城余情 提交于 2019-11-26 23:44:12
问题 I have a web app that allows people to generate a list of songs by artists that are related to a particular artist. I want to be able to connect to the user's Spotify account and create a playlist for them from that list of songs, but I need to get an access token. I have a developer account and client ID and am trying to work through the Authorization Flow, but it's not working for me. Instead, I get this error: XMLHttpRequest cannot load https://accounts.spotify.com/authorize/?client_id

Allowing cors jQuery POST requests to Spotify API on Express.js server

喜你入骨 提交于 2019-11-26 22:02:26
问题 In order to get an access token for the Spotify API in my web app (as specified by their Web Authorization Flow), I've learned that I have to make a POST request. However, when I do so, I get the XMLHttpRequest 500 Error due to the cross-origin problem. I have already figured out how to allow CORS GET requests, but am not sure how to do the same for POST requests. This link provides configuration tips, but it leaves the actual routes for GET and POST blank. This is the relevant code for my

What language or technology was used to develop the Spotify desktop application?

旧时模样 提交于 2019-11-26 18:45:41
问题 Does anybody know which language or technology was used to develop the Spotify desktop application? It's stable, good-looking and lightweight. 回答1: From here: http://www.quora.com/What-is-the-technology-behind-the-Spotify-desktop-app Dated: 2014-09-09 Andreas Blixt, 5-year Spotify employee: The core of all our clients is C++, but that core has since Rasmus's post gotten condensed, with functionality split out into modules. As Spotify becomes available on more and more platforms as well as

Access-Control-Allow-Origin denied spotify api [duplicate]

丶灬走出姿态 提交于 2019-11-26 17:57:01
This question already has an answer here: Ways to circumvent the same-origin policy 11 answers I'm trying to access to the Spotify API token like so: $.ajax({ url: "https://accounts.spotify.com/api/token", type: 'POST', contentType: "application/json; charset=\"utf-8\"", crossDomain: true, data: { grant_type: "authorization_code", code: code, redirect_uri: "http://www.bancadigital.com.br/spotifyteste/callback.html" }, processData: false, dataType: "json", headers: { Authorization: "Basic " + utf8_to_b64(key) }, success: function( response ) { alert(response.access_token); }, }); but the

Spotify apps dead after update?

佐手、 提交于 2019-11-26 16:58:58
问题 I was developing a Spotify apps and all of the sudden Spotify restarted and updated. Yey, great.. I got version 0.8.3.222.g317ab79d... however typing spotify:app:the_app_name doesnt work anymore. I get metadataFailed, sorry I could not find this app. Anyone knows where I can find a downgrade? 回答1: Spotify 0.8.3 changed the app lookup slightly. The URI for getting at apps in development is now spotify:app:application-identifier-in-manifest . This changes the behaviour in old versions, which

Spotify Apps API: any more documentation?

自作多情 提交于 2019-11-26 16:47:27
问题 I've been playing around with the new Spotify Apps API since yesterday but even though the documentation they have online is pretty good, I can't find anything on to use the API object you receive after calling getSpotifyApi(1) . They have some sort of API reference online but no description of how to get these objects, how to access built-in resources such as graphics etc. All in all, I feel like I am missing something. I was able to play around with it by examining the API using the