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
24 lines
661 B
Go
24 lines
661 B
Go
//go:build tamago || noos || tinygo
|
|
|
|
package app
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/driver/embedded"
|
|
intNoos "fyne.io/fyne/v2/internal/driver/embedded"
|
|
"fyne.io/fyne/v2/theme"
|
|
)
|
|
|
|
func NewWithID(id string) fyne.App {
|
|
return newAppWithDriver(nil, nil, id)
|
|
}
|
|
|
|
// SetDriverDetails provides the required information to our app to run without a standard
|
|
// driver. This is useful for embedded devices like GOOS=tamago, tinygo or noos.
|
|
//
|
|
// Since: 2.7
|
|
func SetDriverDetails(a fyne.App, d embedded.Driver) {
|
|
a.(*fyneApp).Settings().SetTheme(theme.DefaultTheme())
|
|
a.(*fyneApp).driver = intNoos.NewNoOSDriver(d.Render, d.Run, d.Queue(), d.ScreenSize)
|
|
}
|