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
32 lines
571 B
Go
32 lines
571 B
Go
package app
|
|
|
|
import (
|
|
"os"
|
|
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/internal"
|
|
"fyne.io/fyne/v2/storage"
|
|
)
|
|
|
|
type store struct {
|
|
*internal.Docs
|
|
a *fyneApp
|
|
}
|
|
|
|
func (s *store) RootURI() fyne.URI {
|
|
if s.a.UniqueID() == "" {
|
|
fyne.LogError("Storage API requires a unique ID, use app.NewWithID()", nil)
|
|
return storage.NewFileURI(os.TempDir())
|
|
}
|
|
|
|
u, err := storage.ParseURI(s.a.storageRoot())
|
|
if err == nil {
|
|
return u
|
|
}
|
|
return storage.NewFileURI(s.a.storageRoot())
|
|
}
|
|
|
|
func (s *store) docRootURI() (fyne.URI, error) {
|
|
return storage.Child(s.RootURI(), "Documents")
|
|
}
|