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.1 KiB
Go
56 lines
1.1 KiB
Go
package theme
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"fyne.io/fyne/v2"
|
|
)
|
|
|
|
//go:embed font/NotoSans-Regular.ttf
|
|
var notoSansRegular []byte
|
|
|
|
var regular = &fyne.StaticResource{
|
|
StaticName: "NotoSans-Regular.ttf",
|
|
StaticContent: notoSansRegular,
|
|
}
|
|
|
|
//go:embed font/NotoSans-Bold.ttf
|
|
var notoSansBold []byte
|
|
|
|
var bold = &fyne.StaticResource{
|
|
StaticName: "NotoSans-Bold.ttf",
|
|
StaticContent: notoSansBold,
|
|
}
|
|
|
|
//go:embed font/NotoSans-Italic.ttf
|
|
var notoSansItalic []byte
|
|
|
|
var italic = &fyne.StaticResource{
|
|
StaticName: "NotoSans-Italic.ttf",
|
|
StaticContent: notoSansItalic,
|
|
}
|
|
|
|
//go:embed font/NotoSans-BoldItalic.ttf
|
|
var notoSansBoldItalic []byte
|
|
|
|
var bolditalic = &fyne.StaticResource{
|
|
StaticName: "NotoSans-BoldItalic.ttf",
|
|
StaticContent: notoSansBoldItalic,
|
|
}
|
|
|
|
//go:embed font/DejaVuSansMono-Powerline.ttf
|
|
var dejaVuSansMono []byte
|
|
|
|
var monospace = &fyne.StaticResource{
|
|
StaticName: "DejaVuSansMono-Powerline.ttf",
|
|
StaticContent: dejaVuSansMono,
|
|
}
|
|
|
|
//go:embed font/InterSymbols-Regular.ttf
|
|
var interSymbolsRegular []byte
|
|
|
|
var symbol = &fyne.StaticResource{
|
|
StaticName: "InterSymbols-Regular.ttf",
|
|
StaticContent: interSymbolsRegular,
|
|
}
|