brokenprogrammer / RapidTunes

A music player that lets you play music from all sources.
MIT License
7 stars 4 forks source link

Spotify Track playback support #88

Closed brokenprogrammer closed 3 years ago

brokenprogrammer commented 3 years ago

This can be done through the spotify api: https://developer.spotify.com/documentation/web-playback-sdk/quick-start/#source-code

Not 100% sure how this is done but I think we could import it within the electron app through electrons remote require and place the sqript within index.html for the app.

This is experimental so we'll see how it works out.

brokenprogrammer commented 3 years ago

Found the following package and links which might be interesting for ideas on how to use this from typescript.

https://www.npmjs.com/package/@types/spotify-web-playback-sdk

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/spotify-web-playback-sdk/index.d.ts

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/spotify-web-playback-sdk/spotify-web-playback-sdk-tests.ts

brokenprogrammer commented 3 years ago

Update: This wont work in electron due to it has some DRM features missing.

We need to use a fork of electron see: https://github.com/callbackinsanity/Et-in-Electron-Ego-III