VideoTools/vendor/fyne.io/fyne/v2/driver/embedded/keyboard.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

40 lines
757 B
Go

package embedded
import "fyne.io/fyne/v2"
// KeyDirection specifies the press/release of a key event
//
// Since: 2.7
type KeyDirection uint8
const (
// KeyPressed specifies that a key was pushed down.
//
// Since: 2.7
KeyPressed KeyDirection = iota
// KeyReleased indicates a key was let back up.
//
// Since: 2.7
KeyReleased
)
// KeyEvent is an event from keyboard actions occurring in an embedded device keyboard.
//
// Since: 2.7
type KeyEvent struct {
Name fyne.KeyName
Direction KeyDirection
}
func (d *KeyEvent) isEvent() {}
// CharacterEvent is an event specifying that a character was created by a hardware or virtual keyboard.
//
// Since: 2.7
type CharacterEvent struct {
Rune rune
}
func (c *CharacterEvent) isEvent() {}