2.0.1 • Published 6 years ago

spotify-castv2-client v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Spotify CastV2 client

Now you can cast your Spotify songs over a Chromecast.

You need a Spotify Premium account.

The client doesn't require any OAuth client configured, you have to provide your Spotify unlimited access token. To obtain it, you can refer to https://github.com/kopiro/node-spotify-webplayer-accesstoken to understand how to configure.

WARNING: this is only a proof-of-concept hack, do not use in your commercial applications

Installation

npm i spotify-castv2-client

Libraries

This project depends on:

  • spotify-web-api-node: A Node.js wrapper for Spotify's Web API.

Test

Clone the repository, then:

SPOTIFY_COOKIES={...} SPOTIFY_DEVICE={...} node example.js
  • SPOTIFY_COOKIES are your cookies
  • SPOTIFY_DEVICE is the name of the Chromecast you want to cast

License

MIT