Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Spotify] Music player

Hey

Recently found out that Spotify published Web Playback SDK that allows you to play full songs on your own site (instead of the 30sec preview clips)

So I decided to make small website that just plays one song from Spotify as POC.
The POC is available on:
https://musicplayer.cypher.fi


What it does:

The javascript uses Spotify web API to create new player and authenicate
and then uses the web playback SDK (using ajax creates POST request to spotify api) to connect to that player and play the song specified in the POST data.

requirements:
Client ID from From spotify developer dashboard
User needs spotify premium account or otherwise the song wont play.


The source code is publicly available on Github licensed under GPL v3 and the API/SDK references are available on Spotifys site


If I have time I will probably make it look better and add more features. Currently it just displays album picture and track name using the data provided by spotify.
The website is served using Netlify
Good job. Thanks for sharing this!
Will definitely be trying this out for my website! Thank you!
if that works will be very good


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ⁠CammySep 7, 2016 05:54 AM 4 151 Sep 7, 2016 05:54 AM
Last Post: ⁠Cammy
by BoliBerrysJun 4, 2016 08:20 PM 10 331 Jun 4, 2016 08:20 PM
Last Post: BoliBerrys
by MagicKid41Nov 27, 2014 07:47 AM 4 183 Nov 27, 2014 07:47 AM
Last Post: MagicKid41