Skip to content

Commit 54e4a0c

Browse files
authored
Merge pull request #14 from vishen/factor_playlist_and_load
all: various code clean-up.
2 parents 8fa9fca + 50b0fac commit 54e4a0c

File tree

6 files changed

+176
-161
lines changed

6 files changed

+176
-161
lines changed

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
11
# Chromecast
22

3-
This implements a basic number of the google chromecast commands. Other than the basic commands, it also allows you to play media files from your computer either individually or in a playlist; the `playlist` command will look at all the files in a folder and play them sorted by numerically.
3+
Implements a basic number of the google chromecast commands. Other than the basic commands, it also allows you to play media files from your computer either individually or in a playlist; the `playlist` command will look at all the files in a folder and play them sorted by numerically.
44

5-
Can play / load a local media file on your chromecast. Currently the chromecast default media receiver only supports the following formats:
5+
## Media Content Playable
6+
7+
Can play / load a local media file on your chromecast.
68

79
```
810
Supported Media formats:
11+
- MP3
12+
- AVI
913
- MKV
1014
- MP4
1115
- WebM
1216
```
1317

1418
If an unknown file is found, it will use `ffmpeg` to transcode it to MP4, and stream it to the chromecast.
1519

20+
## Cast DNS Lookup
21+
22+
A DNS multicast is used to determine the Chromecast and Google Home devices.
23+
24+
The cast DNS entry is also cached, this means that if you pass through the device name, `-n <name>`, or the
25+
device uuid, `-u <uuid>`, the results will be cached and it will connect to the chromecast device instanly.
26+
27+
## Playlist
28+
29+
There is support for playing media items as a playlist.
30+
1631
If playing from a playlist, you are able to pass though the `--select` flag, and this will allow you to select
1732
the media to start playing from. This is useful if you have already played some of the media and want to start
1833
from one you haven't played yet.
@@ -21,9 +36,21 @@ A cache is kept of played media, so if you are playing media from a playlist, it
2136
media files you have recently played and play the next one from the playlist. `--continue=false` can be passed
2237
through and this will start the playlist from the start.
2338

24-
The cast DNS entry is also cached, this means that if you pass through the device name, `-n <name>`, or the
25-
device uuid, `-u <uuid>`, the results will be cached and it will connect to the chromecast device instanly.
26-
Otherwise a DNS multicast is performed to find the chromecast devices.
39+
## Watching a Device
40+
41+
If you would like to see what a device is sending, you are able to `watch` the protobuf messages being sent from your device:
42+
43+
```
44+
$ go-chromecast watch
45+
```
46+
47+
## Installing
48+
49+
Install the usual Go way:
50+
51+
```
52+
$ go get -u github.com/vishen/go-chromecast
53+
```
2754

2855
## Commands
2956

0 commit comments

Comments
 (0)