player

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Back10Seconds

func Back10Seconds()

func EnqueueSong added in v1.8.0

func EnqueueSong(songID string) error

func Forward10Seconds

func Forward10Seconds()

func InitPlayer

func InitPlayer() error

func PlaySong

func PlaySong(songID string, startPaused bool) error

func RestartSong added in v1.1.1

func RestartSong()

func ShutdownPlayer

func ShutdownPlayer()

func TogglePause

func TogglePause()

func UpdateNextSong added in v1.8.0

func UpdateNextSong(songID string)

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