Documentation
¶
Index ¶
- func Back10Seconds()
- func EnqueueSong(songID string) error
- func Forward10Seconds()
- func GetVolume() float64
- func InitPlayer() error
- func PlaySong(songID string, startPaused bool) error
- func RestartSong()
- func SetVolume(volume int)
- func ShutdownPlayer()
- func Stop()
- func TogglePause()
- func UpdateNextSong(songID string)
- func VolumeDown()
- func VolumeUp()
- type PlayerStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Back10Seconds ¶
func Back10Seconds()
func EnqueueSong ¶
func Forward10Seconds ¶
func Forward10Seconds()
func InitPlayer ¶
func InitPlayer() error
func RestartSong ¶
func RestartSong()
func ShutdownPlayer ¶
func ShutdownPlayer()
func TogglePause ¶
func TogglePause()
func UpdateNextSong ¶
func UpdateNextSong(songID string)
func VolumeDown ¶
func VolumeDown()
Types ¶
type PlayerStatus ¶
type PlayerStatus struct {
Title string
Artist string
Album string
Current float64
Duration float64
Paused bool
Volume float64
Path string
}
func GetPlayerStatus ¶
func GetPlayerStatus() PlayerStatus
Click to show internal directories.
Click to hide internal directories.