VideoTools/vendor/fyne.io/fyne/v2/internal/metadata/load.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

35 lines
743 B
Go

package metadata
import (
"io"
"os"
"path/filepath"
"github.com/BurntSushi/toml"
)
// Load attempts to read a FyneApp metadata from the provided reader.
// If this cannot be done an error will be returned.
func Load(r io.Reader) (*FyneApp, error) {
var data FyneApp
_, err := toml.NewDecoder(r).Decode(&data)
if err != nil {
return nil, err
}
return &data, nil
}
// LoadStandard attempts to read a FyneApp metadata from the `FyneApp.toml` file in the specified dir.
// If the file cannot be found or parsed an error will be returned.
func LoadStandard(dir string) (*FyneApp, error) {
path := filepath.Join(dir, "FyneApp.toml")
r, err := os.Open(path)
if err != nil {
return nil, err
}
defer r.Close()
return Load(r)
}