Documentation ¶
Index ¶
- type Player
- func (player *Player) AddTarget(username string)
- func (player *Player) IsPlaying() bool
- func (player *Player) IsStopped() bool
- func (player *Player) NowPlaying() string
- func (player *Player) Play(path string)
- func (player *Player) PlayCurrent()
- func (player *Player) PlayFile(path string) error
- func (player *Player) PlayYT(url string) error
- func (player *Player) RemoveTarget(username string)
- func (player *Player) SetVolume(value float32)
- func (player *Player) Skip(amount int)
- func (player *Player) Stop(wantsToStop bool)
- func (player *Player) TargetUsers()
- func (player *Player) WaitForStop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { Client *gumble.Client Playlist playlist.List Volume float32 IsRadio bool Config *config.Config // contains filtered or unexported fields }
func (*Player) NowPlaying ¶
func (*Player) PlayCurrent ¶
func (player *Player) PlayCurrent()
PlayCurrent plays the playlist at the current position should the player not already be playing.
func (*Player) RemoveTarget ¶
func (*Player) TargetUsers ¶
func (player *Player) TargetUsers()
func (*Player) WaitForStop ¶
func (player *Player) WaitForStop()
WaitForStop waits for the playback stream to end and performs the upcoming action
Click to show internal directories.
Click to hide internal directories.