chromecast-player-reloaded

1.1.0 • Public • Published

chromecast-player-reloaded

Donate Donate

Node chromecast player reloaded.

Based on xat/chromecast-player. Relies on the castv2-client lib from thibauts.

All credits go to them.
I decided to fork my own version as original project does not seem to be maintained anymore.

Usage

Start Playback of some video file:

const player = require('chromecast-player-reloaded')();
const media = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4';

player.launch(media, (err, p) => {
  p.once('playing', () => {
    console.log('playback has started.');
  });
});

Attach to a currently playing session:

const player = require('chromecast-player-reloaded')();

player.attach((err, p) => {
  p.pause();
});

Installation

npm install chromecast-player-reloaded

License

MIT

Donation

If you like my work please support it by buying me a cup of coffee 😁

PayPal

Package Sidebar

Install

npm i chromecast-player-reloaded

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

18.3 kB

Total Files

6

Last publish

Collaborators

  • rafostar