mafintosh/chromecasts
mafintosh/chromecasts has 1,448 GitHub stars and 68 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 05:24 UTC. Last push 2021-10-04.
Query your local network for Chromecasts and have them play media
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalchromecasts
Query your local network for Chromecasts and have them play media
npm install chromecasts --save
Usage
const chromecasts = require('chromecasts')()
chromecasts.on('update', players => {
console.log('all players: ', players)
player.play('http://example.com/my-video.mp4', {title: 'my video', type: 'video/mp4'})
})
API
var list = chromecasts()
Creates a chromecast list.
When creating a new list it will call list.update() once.
It is up to you to call afterwards incase you want to update the list.
list.update()
Updates the player list by querying the local network for chromecast instances.
list.on('update', player)
Emitted when a new player is found on the local network
player.play(url, [opts], cb)
Make the player play a url. Options include:
{
title: 'My movie',
type: 'video/mp4',
seek: seconds, // start by seeking to this offset
subtitles: ['http://example.com/sub.vtt'], // subtitle track 1,
autoSubtitles: true // enable first track if you provide subs
}
player.subtitles(track, [cb])
Enable subtitle track. Use player.subtitles(false) to disable subtitles
player.pause([cb])
Make the player pause playback
player.resume([cb])
Resume playback
player.stop([cb])
Stop the playback
player.seek(seconds, [cb])
Seek the video
player.status(cb)
Get a status object of the current played video.
player.on('status', status)
Emitted when a status object is received.
License
MIT
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,125 starspublic-apis/public-apis
A collective list of free APIs
497,351 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
444,272 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,210 stars