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
21 lines
792 B
Go
21 lines
792 B
Go
package fyne
|
|
|
|
// DoAndWait is used to execute a specified function in the main Fyne runtime context.
|
|
// This is required when a background process wishes to adjust graphical elements of a running app.
|
|
// Developers should use this only from within goroutines they have created.
|
|
//
|
|
// Since: 2.6
|
|
func DoAndWait(fn func()) {
|
|
CurrentApp().Driver().DoFromGoroutine(fn, true)
|
|
}
|
|
|
|
// Do is used to execute a specified function in the main Fyne runtime context without waiting.
|
|
// This is required when a background process wishes to adjust graphical elements of a running app.
|
|
// Developers should use this only from within goroutines they have created and when the result does not have to
|
|
// be waited for.
|
|
//
|
|
// Since: 2.6
|
|
func Do(fn func()) {
|
|
CurrentApp().Driver().DoFromGoroutine(fn, false)
|
|
}
|