Documentation ¶
Index ¶
- type ChangeHandler
- type Player
- func (this *Player) Connect() error
- func (this *Player) GetCurrentSong() (*mpdinfo.CurrentSong, error)
- func (this *Player) GetStatus() (*mpdinfo.Status, error)
- func (this *Player) Next() error
- func (this *Player) PlayPause() error
- func (this *Player) Previous() error
- func (this *Player) RegisterChangeHandler(changeHandler ChangeHandler)
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 (*Player) GetCurrentSong ¶
func (this *Player) GetCurrentSong() (*mpdinfo.CurrentSong, error)
* Returns nil if no current song is playing
func (*Player) RegisterChangeHandler ¶
func (this *Player) RegisterChangeHandler(changeHandler ChangeHandler)
Click to show internal directories.
Click to hide internal directories.