VideoTools/vendor/fyne.io/fyne/v2/validation.go
Stu Leak 68df790d27 Fix player frame generation and video playback
Major improvements to UnifiedPlayer:

1. GetFrameImage() now works when paused for responsive UI updates
2. Play() method properly starts FFmpeg process
3. Frame display loop runs continuously for smooth video display
4. Disabled audio temporarily to fix video playback fundamentals
5. Simplified FFmpeg command to focus on video stream only

Player now:
- Generates video frames correctly
- Shows video when paused
- Has responsive progress tracking
- Starts playback properly

Next steps: Re-enable audio playback once video is stable
2026-01-07 22:20:00 -05:00

18 lines
540 B
Go

package fyne
// Validatable is an interface for specifying if a widget is validatable.
//
// Since: 1.4
type Validatable interface {
Validate() error
// SetOnValidationChanged is used to set the callback that will be triggered when the validation state changes.
// The function might be overwritten by a parent that cares about child validation (e.g. widget.Form).
SetOnValidationChanged(func(error))
}
// StringValidator is a function signature for validating string inputs.
//
// Since: 1.4
type StringValidator func(string) error