Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/peercast
torrent-stream + chromecast
https://github.com/mafintosh/peercast
Last synced: 9 days ago
JSON representation
torrent-stream + chromecast
- Host: GitHub
- URL: https://github.com/mafintosh/peercast
- Owner: mafintosh
- License: mit
- Created: 2014-10-03T03:47:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T23:15:03.000Z (over 6 years ago)
- Last Synced: 2024-10-22T16:02:20.358Z (17 days ago)
- Language: JavaScript
- Size: 165 KB
- Stars: 516
- Watchers: 20
- Forks: 38
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs-cn - peercast - Chromecast 上的视频种子播放软件 (包 / 黑科技)
- awesome-nodejs-cn - peercast - **star:514** 将种子视频流式传输到 Chromecast (包 / 黑科技)
- awesome-nodejs - peercast - Stream a torrent video to Chromecast. (Packages / Mad science)
- awesome-network-js - peercast
- awesome-nodejs - peercast - torrent-stream + chromecast - ★ 401 (Mad science)
- awesome-nodejs-cn - peercast - 种子视频流式传输到Chromecast工具. (目录 / 逼格项目)
README
# 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
``` js
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