A command line tool to control Google Chromecast devices.
Download the latest binaries from: https://github.com/oliverpool/go-chromecast/releases/latest
$ sudo mv cast-my-platform /usr/local/bin/cast
$ sudo chmod +x /usr/local/bin/cast
$ cast help
Play a media file:
$ cast --name Hifi media play http://url/file.mp3
Stop playback:
$ cast --name Hifi media stop
Set volume:
$ cast --name Hifi volume 0.5
Close app on the Chromecast:
$ cast --name Hifi quit
Please open a github issue including cast version number cast --version
.
Pull requests are gratefully received!
- please 'gofmt' the code.
Based on go library port by ninjasphere