Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lann/mpris2-go
MPRIS2 client package for Go
https://github.com/lann/mpris2-go
Last synced: about 1 month ago
JSON representation
MPRIS2 client package for Go
- Host: GitHub
- URL: https://github.com/lann/mpris2-go
- Owner: lann
- License: bsd-2-clause
- Created: 2013-06-07T17:03:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-08T06:02:52.000Z (over 11 years ago)
- Last Synced: 2023-08-12T09:28:19.757Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 148 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mpris2-go
=========[MPRIS2](http://specifications.freedesktop.org/mpris-spec/latest/) client package for Go
Docs: http://godoc.org/github.com/lann/mpris2-go
Example
-------```golang
import "github.com/lann/mpris2"conn, err := mpris2.Connect() // Connect to DBus
mp, err := conn.GetAnyMediaPlayer()
err = mp.Play()
meta, err := mp.Metadata()
fmt.Println("Title: ", meta.Title())
```Also, check out [flipperdinger](https://github.com/lann/flipperdinger), a CLI remote.