playback

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NextMsg

type NextMsg struct{}

type Notifier

type Notifier interface {
	Update(State)
	Seeked(time.Duration)
}

type PauseMsg

type PauseMsg struct{}

type PlayMsg

type PlayMsg struct{}

type PlayPauseMsg

type PlayPauseMsg struct{}

type PrevMsg

type PrevMsg struct{}

type QuitMsg

type QuitMsg struct{}

type SeekMsg

type SeekMsg struct{ Offset time.Duration }

type SetPositionMsg

type SetPositionMsg struct {
	Position time.Duration
}

type SetVolumeMsg

type SetVolumeMsg struct{ VolumeDB float64 }

type State

type State struct {
	Status   Status
	Track    Track
	VolumeDB float64
	Position time.Duration
	Seekable bool
}

type Status

type Status string
const (
	StatusStopped Status = "Stopped"
	StatusPlaying Status = "Playing"
	StatusPaused  Status = "Paused"
)

type StopMsg

type StopMsg struct{}

type Track

type Track struct {
	Title       string
	Artist      string
	Album       string
	Genre       string
	TrackNumber int
	URL         string
	ArtURL      string
	Duration    time.Duration
}

Jump to

Keyboard shortcuts

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