ui

package
v0.0.0-...-76e383a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodeModel

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

EncodeModel is the Bubbletea model for encoding progress

func NewEncodeModel

func NewEncodeModel(enc *encoder.Encoder, outputMode string, outputBitrate int) *EncodeModel

NewEncodeModel creates a new encoding model

func (*EncodeModel) Complete

func (m *EncodeModel) Complete() bool

Complete returns whether encoding has finished

func (*EncodeModel) Error

func (m *EncodeModel) Error() error

Error returns any error that occurred during encoding

func (*EncodeModel) Init

func (m *EncodeModel) Init() tea.Cmd

Init initializes the model and starts encoding

func (*EncodeModel) Update

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

Update handles messages

func (*EncodeModel) View

func (m *EncodeModel) View() string

View renders the UI

type EncodingCompleteMsg

type EncodingCompleteMsg struct {
	Err error
}

EncodingCompleteMsg signals that encoding has finished

type ProgressUpdate

type ProgressUpdate struct {
	SamplesProcessed int64
	TotalSamples     int64
	Err              error
}

ProgressUpdate represents a progress update from the encoder

Jump to

Keyboard shortcuts

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