chromecast-player-reloaded
v1.1.0
Published
Node chromecast player reloaded
Downloads
3
Readme
chromecast-player-reloaded
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 :grin: