mpd

package
v0.0.0-...-7c8f249 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeHandler

type ChangeHandler func()

type Player

type Player struct {
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer() *Player

Returns a Player instance to a server at localhost:6600.

func (*Player) Connect

func (this *Player) Connect() error

Connects to the MPD server.

func (*Player) GetCurrentSong

func (this *Player) GetCurrentSong() (*mpdinfo.CurrentSong, error)

* Returns nil if no current song is playing

func (*Player) GetStatus

func (this *Player) GetStatus() (*mpdinfo.Status, error)

func (*Player) Next

func (this *Player) Next() error

func (*Player) PlayPause

func (this *Player) PlayPause() error

func (*Player) Previous

func (this *Player) Previous() error

func (*Player) RegisterChangeHandler

func (this *Player) RegisterChangeHandler(changeHandler ChangeHandler)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL