Documentation
¶
Index ¶
- type JumpQueueMsg
- type Model
- func (m Model) CurrentIndex() int
- func (m Model) HasActiveFilter() bool
- func (m Model) Init() tea.Cmd
- func (m Model) IsFiltering() bool
- func (m *Model) SetCursor(idx int)
- func (m *Model) SetPlaybackState(isPlaying, isPaused bool, position, duration float64)
- func (m *Model) SetQueue(tracks []jellyfin.Track, currentIndex int)
- func (m *Model) SetShuffle(isShuffle bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetSubliminalState(status SubliminalStatus, complete, total, volume int)
- func (m Model) Tracks() []jellyfin.Track
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type QueueActionMsg
- type RemoveQueueMsg
- type SubliminalStatus
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 (Model) CurrentIndex ¶
func (Model) HasActiveFilter ¶
func (Model) IsFiltering ¶
func (*Model) SetPlaybackState ¶
func (*Model) SetShuffle ¶
func (*Model) SetSubliminalState ¶
func (m *Model) SetSubliminalState(status SubliminalStatus, complete, total, volume int)
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 )