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
56 lines
1.7 KiB
Go
56 lines
1.7 KiB
Go
package container
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/internal/widget"
|
|
)
|
|
|
|
// Scroll defines a container that is smaller than the Content.
|
|
// The Offset is used to determine the position of the child widgets within the container.
|
|
//
|
|
// Since: 1.4
|
|
type Scroll = widget.Scroll
|
|
|
|
// ScrollDirection represents the directions in which a Scroll container can scroll its child content.
|
|
//
|
|
// Since: 1.4
|
|
type ScrollDirection = fyne.ScrollDirection
|
|
|
|
// Constants for valid values of ScrollDirection.
|
|
const (
|
|
// ScrollBoth supports horizontal and vertical scrolling.
|
|
ScrollBoth ScrollDirection = fyne.ScrollBoth
|
|
// ScrollHorizontalOnly specifies the scrolling should only happen left to right.
|
|
ScrollHorizontalOnly = fyne.ScrollHorizontalOnly
|
|
// ScrollVerticalOnly specifies the scrolling should only happen top to bottom.
|
|
ScrollVerticalOnly = fyne.ScrollVerticalOnly
|
|
// ScrollNone turns off scrolling for this container.
|
|
//
|
|
// Since: 2.1
|
|
ScrollNone = fyne.ScrollNone
|
|
)
|
|
|
|
// NewScroll creates a scrollable parent wrapping the specified content.
|
|
// Note that this may cause the MinSize to be smaller than that of the passed object.
|
|
//
|
|
// Since: 1.4
|
|
func NewScroll(content fyne.CanvasObject) *Scroll {
|
|
return widget.NewScroll(content)
|
|
}
|
|
|
|
// NewHScroll create a scrollable parent wrapping the specified content.
|
|
// Note that this may cause the MinSize.Width to be smaller than that of the passed object.
|
|
//
|
|
// Since: 1.4
|
|
func NewHScroll(content fyne.CanvasObject) *Scroll {
|
|
return widget.NewHScroll(content)
|
|
}
|
|
|
|
// NewVScroll a scrollable parent wrapping the specified content.
|
|
// Note that this may cause the MinSize.Height to be smaller than that of the passed object.
|
|
//
|
|
// Since: 1.4
|
|
func NewVScroll(content fyne.CanvasObject) *Scroll {
|
|
return widget.NewVScroll(content)
|
|
}
|