Documentation ¶
Index ¶
- type Controller
- type Player
- func (p *Player) Next()
- func (p *Player) Play(url string)
- func (p *Player) Playpause()
- func (p *Player) PollStatus()
- func (p *Player) Previous()
- func (p *Player) State() string
- func (p *Player) Stop()
- func (p *Player) ToggleMute()
- func (p *Player) ToggleRepeatMode()
- func (p *Player) VolumeHold(up bool)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Player ¶
func (*Player) PollStatus ¶
func (p *Player) PollStatus()
func (*Player) ToggleMute ¶
func (p *Player) ToggleMute()
func (*Player) ToggleRepeatMode ¶
func (p *Player) ToggleRepeatMode()
ToggleRepeatMode cycles between repeat modes in ascending order based on player's current repeat mode. Mode is either 0, 1 or 2. 0 means repeat play queue, 1 means repeat a track, and 2 means repeat off.
func (*Player) VolumeHold ¶
type Status ¶
type Status struct { ETag string `xml:"etag,attr"` Volume int `xml:"volume"` Album string `xml:"album"` Artist string `xml:"artist"` Track string `xml:"name"` Title2 string `xml:"title2"` Title3 string `xml:"title3"` Format string `xml:"streamFormat"` Quality string `xml:"quality"` TrackLen int `xml:"totlen"` Service string `xml:"service"` Secs int `xml:"secs"` State string `xml:"state"` Repeat int `xml:"repeat"` }
Click to show internal directories.
Click to hide internal directories.