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
22 lines
435 B
Go
22 lines
435 B
Go
package fyne
|
|
|
|
import (
|
|
"log"
|
|
"runtime"
|
|
)
|
|
|
|
// LogError reports an error to the command line with the specified err cause,
|
|
// if not nil.
|
|
// The function also reports basic information about the code location.
|
|
func LogError(reason string, err error) {
|
|
log.Println("Fyne error: ", reason)
|
|
if err != nil {
|
|
log.Println(" Cause:", err)
|
|
}
|
|
|
|
_, file, line, ok := runtime.Caller(1)
|
|
if ok {
|
|
log.Printf(" At: %s:%d", file, line)
|
|
}
|
|
}
|