Package Exports
- chromecast-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chromecast-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
chromecast-js
chromecast-js is a javascript client library for googlecast's remote playback protocol that uses DefaultMediaReceiver to play any (compatible) content in the Chromecast.
Installation
From npm:
npm intall chromecast-js Usage
chromecastjs = require('chromecast-js')
var browser = new chromecastjs.Browser()
browser.on('deviceOn', function(device){
device.connect()
device.on('connected', function(){
device.play('http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4', 0, function(){
console.log('Playing in your chromecast!')
})
})
})