Versions in this module Expand all Collapse all v1 v1.9.7 Mar 4, 2025 v1.9.6 Feb 17, 2025 Changes in this version + func OptionStrings() []string + type Option uint8 + const Option1xForward + const Option1xRewind + const Option2xForward + const Option2xRewind + const Option3xForward + const Option3xRewind + const OptionPlayPause + func OptionString(s string) (Option, error) + func OptionValues() []Option + func (i Option) IsAOption() bool + func (i Option) String() string + func (o Option) DynamicString(isPlaying bool) string + func (o Option) Speed() float64 + type Player struct + func NewPlayer(m *movie.Movie, logger *slog.Logger, renderer *lipgloss.Renderer) *Player + func (p *Player) Close() + func (p *Player) HelpView() string + func (p *Player) Init() tea.Cmd + func (p *Player) OptionsView() string + func (p *Player) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (p *Player) View() string + type Styles struct + Active lipgloss.Style + MarginX string + MarginY string + Options lipgloss.Style + Progress lipgloss.Style + Screen lipgloss.Style + Selected lipgloss.Style + func NewStyles(m *movie.Movie, renderer *lipgloss.Renderer) Styles + type ViewCache struct + func NewCache(update func() string) *ViewCache + func (v *ViewCache) Invalidate() + func (v *ViewCache) String() string