Query your local network for Chromecasts and have them play media
npm install chromecasts
var chromecasts =chromecasts
var list = chromecasts()
Creates a chromecast list.
When creating a new list it will call
It is up to you to call afterwards incase you want to update the list.
Updates the player list by querying the local network for chromecast instances.
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 offsetsubtitles: '' // subtitle track 1,autoSubtitles: true // enable first track if you provide subs
Enable subtitle track. Use
player.subtitles(false) to disable subtitles
Make the player pause playback
Stop the playback
Seek the video
Get a status object of the current played video.
Emitted when a status object is received.