SoundPlayer
Custom player for soundcloud. Once up and running, you can use query parameters to customize the player the way you want, this way you can embed it anywhere you wants using iframe or other methods.
p:
The p parameter refers to the playlist you want to pass to the app. It receives the playlist's url without the main domain.
Example: playlistsmusic/sets/hits-of-the-80s-classic-pop
s:
The s parameter refers to the single song you want to pass to the app. It receives the song's url without the main domain.
Example: nikola-munjiza/solo-leveling-ost-full-looped-dark-aria-lv2-by-sawanohiroyuki
color:
Sets the primary color of the player, it receives the color's hex code without the "#"
imgs:
With the imgs parameter you can replace the playlist's and its songs artwork. It receives the song id and the image url separated by commas and the link doesn't need to have the protocol.
Example: playlist:link,id1:link,id2:link
How to get the song's id?
The API route api/track/id/?q=song_url returns the song's id
Song URL Example: roadrunner-usa/nickelback-far-away
Environment Variables:
there are three ones. the URL path for one of the API calls, the one that returns the tracks from specified ids, the parameters that will be used on each API call and the API KEY.