#Python Script Setup
To get the python script running, run either pip install flask
or pip install -r requirements.txt
if you used git clone
to clone the gist
#libspotify_embedded_shared.so
notes
##Using the library (still in progress)
There's a compile.sh
that compiles a program that calls SpInit()
, but doesn't get any farther because it needs more than just the API version number (which is 4)
##Spotify appkey
An appkey (from https://devaccount.spotify.com/my-account/keys/) is passed somewhere into the library, but I haven't figured out where yet
##Library trace
This is output from running latrace
on a program that uses libspotify_connect_embedded.so
###Startup
5743 SpInit [libspotify_embedded_shared.so]
5743 SpSetDisplayName [libspotify_embedded_shared.so]
5743 SpRegisterConnectionCallbacks [libspotify_embedded_shared.so]
5743 SpRegisterDebugCallbacks [libspotify_embedded_shared.so]
5743 SpRegisterPlaybackCallbacks [libspotify_embedded_shared.so]
5743 SpPlaybackUpdateVolume [libspotify_embedded_shared.so]
###Run every time devices list is opened
5747 SpZeroConfGetVars [libspotify_embedded_shared.so]
###After a device is selected
5748 SpConnectionLoginZeroConf [libspotify_embedded_shared.so]
5748 SpConnectionLoginBlob [libspotify_embedded_shared.so]
5743 SpPlaybackUpdateVolume [libspotify_embedded_shared.so]
#Updates
##3/4/15
Added info about SpConnectionLoginZeroConf, and that its directly used for login instead of SpConnectionLoginBlob
Added info about how the public key is possibly generated from SpZeroConfGetVars()
##3/6/15
Added info about needing an appkey
##3/7/15
Added SPEAKER, TV, AVR, and STB device types
Added notes about blob being encrypted
##3/8/15 Added initital program that links against the library, and some notes about it
##3/9/15 Automatically download library for compile.sh
##3/10/15 Added SpInit() struct
Can this be used to to discover a Spotify Connect device on the local network and log it in to Spotify so that it is visible in the Web API? This is what I am looking for, and others, too: https://stackoverflow.com/questions/56001560/programatically-onboard-a-spotify-connect-device-to-my-account