Skip to content
torrent-stream + chromecast
JavaScript
Branch: master
Clone or download

Latest commit

mafintosh Merge pull request #2 from xat/chromecast-player
simplify stuff by using chromecast-player
Latest commit 58d605f Oct 3, 2014

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE first commit Oct 3, 2014
README.md add -g to readme Oct 3, 2014
bin.js
index.js simplify stuff by using chromecast-player Oct 3, 2014
package.json simplify stuff by using chromecast-player Oct 3, 2014

README.md

peercast

torrent-stream + chromecast

npm install -g peercast

Usage

Be on the same wifi as your chromecast and do

peercast magnet:?xt=urn:btih:99feae0a05c6a5dd9af939ffce5ca9b0d16f31b0

Currently this does not do any transcoding so the torrent should be mp4 (or whatever chromecast supports)

Programmatic usage

var peercast = require('peercast')

var engine = peercast(torrentOrMagnetLink)

engine.on('chromecast-status', function(status) {
  console.log('chromecast status: %s', status.playerState)
})

engine.on('chromecast-playing', function(file) {
  console.log('chromcast is playing %s', file.name)
})

License

MIT

You can’t perform that action at this time.