queue

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JumpQueueMsg

type JumpQueueMsg struct {
	Index int
}

JumpQueueMsg is emitted when the user selects a track in the queue to play immediately.

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(styles ui.Styles) Model

func (Model) CurrentIndex

func (m Model) CurrentIndex() int

func (Model) HasActiveFilter

func (m Model) HasActiveFilter() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) IsFiltering

func (m Model) IsFiltering() bool

func (*Model) SetCursor

func (m *Model) SetCursor(idx int)

func (*Model) SetPlaybackState

func (m *Model) SetPlaybackState(isPlaying, isPaused bool, position, duration float64)

func (*Model) SetQueue

func (m *Model) SetQueue(tracks []jellyfin.Track, currentIndex int)

func (*Model) SetShuffle

func (m *Model) SetShuffle(isShuffle bool)

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) SetSubliminalState

func (m *Model) SetSubliminalState(status SubliminalStatus, complete, total, volume int)

func (Model) Tracks

func (m Model) Tracks() []jellyfin.Track

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type QueueActionMsg

type QueueActionMsg struct {
	Action  string // e.g. "toggle_pause", "clear", "repeat_queue", "subliminal"
	Index   int
	TrackID string
}

QueueActionMsg signals a media control command from the queue screen.

type RemoveQueueMsg

type RemoveQueueMsg struct {
	Index int
}

RemoveQueueMsg is emitted when the user removes a track from the queue.

type SubliminalStatus

type SubliminalStatus uint8
const (
	SubliminalInactive SubliminalStatus = iota
	SubliminalPreparing
	SubliminalStarting
	SubliminalPlaying
	SubliminalPaused
)

Jump to

Keyboard shortcuts

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