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
680 B
Go
21 lines
680 B
Go
// Package container provides containers that are used to lay out and organise applications.
|
|
package container
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
)
|
|
|
|
// New returns a new Container instance holding the specified CanvasObjects which will be laid out according to the specified Layout.
|
|
//
|
|
// Since: 2.0
|
|
func New(layout fyne.Layout, objects ...fyne.CanvasObject) *fyne.Container {
|
|
return &fyne.Container{Layout: layout, Objects: objects}
|
|
}
|
|
|
|
// NewWithoutLayout returns a new Container instance holding the specified CanvasObjects that are manually arranged.
|
|
//
|
|
// Since: 2.0
|
|
func NewWithoutLayout(objects ...fyne.CanvasObject) *fyne.Container {
|
|
return &fyne.Container{Objects: objects}
|
|
}
|