https://github.com/bbigras/go-clementine
Control Clementine using goprotobuf
https://github.com/bbigras/go-clementine
Last synced: about 1 year ago
JSON representation
Control Clementine using goprotobuf
- Host: GitHub
- URL: https://github.com/bbigras/go-clementine
- Owner: bbigras
- Created: 2013-10-26T19:51:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-28T23:03:51.000Z (almost 12 years ago)
- Last Synced: 2025-02-14T15:47:32.101Z (over 1 year ago)
- Language: Go
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#go-clementine#
[](https://travis-ci.org/brunoqc/go-clementine)
[](https://godoc.org/github.com/brunoqc/go-clementine)
Control [Clementine](http://www.clementine-player.org/) using the [remote control feature](https://code.google.com/p/clementine-player/wiki/RemoteControl) and [goprotobuf](https://code.google.com/p/goprotobuf/).
For now, there's only 3 functions:
- SimplePlay()
- SimplePause()
- SimpleStop()
Those functions connect to Clementine, send the command and disconnect.
I'll support persistent connection later. If you need a feature you can open [a new issue](https://github.com/brunoqc/go-clementine/issues/new).
##Sample code##
```go
package main
import "github.com/brunoqc/go-clementine"
func main() {
clementine := clementine.Clementine{
Host: "127.0.0.1",
Port: 5500,
AuthCode: 28615,
}
errPause := clementine.SimpleStop()
if errPause != nil {
panic(errPause)
}
}
```