player

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back10Seconds

func Back10Seconds()

func EnqueueSong

func EnqueueSong(songID string) error

func Forward10Seconds

func Forward10Seconds()

func GetVolume

func GetVolume() float64

func InitPlayer

func InitPlayer() error

func PlaySong

func PlaySong(songID string, startPaused bool) error

func RestartSong

func RestartSong()

func SetVolume

func SetVolume(volume int)

func ShutdownPlayer

func ShutdownPlayer()

func Stop added in v2.5.1

func Stop()

func TogglePause

func TogglePause()

func UpdateNextSong

func UpdateNextSong(songID string)

func VolumeDown

func VolumeDown()

func VolumeUp

func VolumeUp()

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

Jump to

Keyboard shortcuts

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