Documentation
¶
Index ¶
- type Control
- type Model
- func (m *Model) CurrentTrack() *api.Track
- func (m *Model) Height() int
- func (m *Model) HideError()
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsPlaying() bool
- func (m *Model) IsStoped() bool
- func (m *Model) Pause()
- func (m *Model) Play()
- func (m *Model) Position() time.Duration
- func (m *Model) Progress() float64
- func (m *Model) Rewind(amount time.Duration) tea.Cmd
- func (m *Model) SetLirycs(show bool)
- func (m *Model) SetPos(pos time.Duration)
- func (m *Model) SetVolume(v float64)
- func (m *Model) SetWidth(width int)
- func (m *Model) ShowError(text string)
- func (m *Model) StartTrack(track *api.Track, reader *stream.BufferedStream, lyrics []api.LyricPair)
- func (m *Model) Stop()
- func (m *Model) TrackBuffer() *stream.BufferedStream
- func (m *Model) Update(message tea.Msg) (*Model, tea.Cmd)
- func (m *Model) View() string
- func (m *Model) Volume() float64
- func (m *Model) Width() int
- type ProgressControl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) CurrentTrack ¶
func (*Model) StartTrack ¶
func (*Model) TrackBuffer ¶
func (m *Model) TrackBuffer() *stream.BufferedStream
type ProgressControl ¶
type ProgressControl float64
func (ProgressControl) Value ¶
func (p ProgressControl) Value() float64
Click to show internal directories.
Click to hide internal directories.