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
24 lines
1004 B
Go
24 lines
1004 B
Go
package desktop
|
|
|
|
import "fyne.io/fyne/v2"
|
|
|
|
// App defines the desktop specific extensions to a fyne.App.
|
|
//
|
|
// Since: 2.2
|
|
type App interface {
|
|
SetSystemTrayMenu(menu *fyne.Menu)
|
|
// SetSystemTrayIcon sets the icon to be used in system tray.
|
|
// If you pass a `ThemedResource` then any OS that adjusts look to match theme will adapt the icon.
|
|
SetSystemTrayIcon(icon fyne.Resource)
|
|
|
|
// SetSystemTrayWindow optionally sets a window that this system tray will help to control.
|
|
// On systems that support it (Windows, macOS and most Linux) the window will be shown on left-tap.
|
|
// If the window is decorated (a regular window) tapping will show it only, however for a splash window
|
|
// (without window decorations) tapping when the window is visible will hide it.
|
|
// If you also have a menu set this will be triggered with right-mouse tap.
|
|
// Note that your menu should probably include a "Show Window" menu item for less-compliant Linux systems.
|
|
//
|
|
// Since: 2.7
|
|
SetSystemTrayWindow(fyne.Window)
|
|
}
|