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
44 lines
970 B
Go
44 lines
970 B
Go
//go:build ios || android
|
|
|
|
package dialog
|
|
|
|
import (
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/internal/driver/mobile"
|
|
"fyne.io/fyne/v2/storage"
|
|
)
|
|
|
|
func (f *fileDialog) getPlaces() []favoriteItem {
|
|
return []favoriteItem{}
|
|
}
|
|
|
|
func isHidden(file fyne.URI) bool {
|
|
if file.Scheme() != "file" {
|
|
fyne.LogError("Cannot check if non file is hidden", nil)
|
|
return false
|
|
}
|
|
return false
|
|
}
|
|
|
|
func hideFile(filename string) error {
|
|
return nil
|
|
}
|
|
|
|
func fileOpenOSOverride(f *FileDialog) bool {
|
|
if f.isDirectory() {
|
|
mobile.ShowFolderOpenPicker(f.callback.(func(fyne.ListableURI, error)))
|
|
} else {
|
|
mobile.ShowFileOpenPicker(f.callback.(func(fyne.URIReadCloser, error)), f.filter)
|
|
}
|
|
return true
|
|
}
|
|
|
|
func fileSaveOSOverride(f *FileDialog) bool {
|
|
mobile.ShowFileSavePicker(f.callback.(func(fyne.URIWriteCloser, error)), f.filter, f.initialFileName)
|
|
return true
|
|
}
|
|
|
|
func getFavoriteLocation(homeURI fyne.URI, name string) (fyne.URI, error) {
|
|
return storage.Child(homeURI, name)
|
|
}
|