spotify-castv2-client

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i spotify-castv2-client

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

7.07 kB

Total Files

7

Last publish

Collaborators

  • kopiro