npm.io
1.1.0 • Published 7 years ago

chromecast-player-reloaded

Licence
MIT
Version
1.1.0
Deps
9
Size
18 kB
Vulns
0
Weekly
0
Stars
2

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

Keywords