discover-chromecasts
Version:
Discover/detect all Chromecast devices on a network.
35 lines (23 loc) • 786 B
Markdown
Discover/detect all Chromecast devices on a network.
Install the package with NPM:
```bash
$ npm install discover-chromecasts
```
Example:
```javascript
import discoverChromecasts from "discover-chromecasts";
discoverChromecasts({ timeout: 5000 })
.then(chromecasts => {
chromecasts.forEach(chromecast => {
console.log(chromecast);
});
}).catch(err => {
console.error(err.message);
});
```
The tool is not officially affiliated with Google in any way. Use at own risk.
Code originally forked from [chromecast-scanner](https://github.com/xat/chromecast-scanner).