package main import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/widget" "git.martyn.berlin/martyn/fyne-widgets/pkg/layouts" "git.martyn.berlin/martyn/fyne-widgets/pkg/vidplayback" ) var videoWidget *vidplayback.VidPlayback func unimplemented() {} func main() { a := app.New() w := a.NewWindow("Video") videoWidget = vidplayback.NewVidPlayback() videoWidget.VideoFilename = "network.mp4" layout := layouts.NewFloatingControlsLayout() layout.FloatingControlsLocation = layouts.FloatingControlsCenter buttons := container.NewHBox(widget.NewButton(">", func() { videoWidget.Play() }), widget.NewButton("[]", unimplemented)) w.SetContent(container.New(&layout, videoWidget, buttons)) w.Resize(fyne.NewSize(640, 480)) w.ShowAndRun() }