chromecast-player
v0.2.3
Published
simple chromecast player
Downloads
146
Readme
chromecast-player
simple chromecast player. Relies on the castv2-client lib from thibauts, all credits go to him.
Usage Samples
Start Playback of some video file:
var player = require('chromecast-player')();
var media = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4';
player.launch(media, function(err, p) {
p.once('playing', function() {
console.log('playback has started.');
});
});
Attach to a currently playing session:
var player = require('chromecast-player')();
player.attach(function(err, p) {
p.pause();
});
Installation
npm install chromecast-player
License
Copyright (c) 2014 Simon Kusterer Licensed under the MIT license.