fix(player): resolve build errors in UnifiedPlayerAdapter
- Remove unused sync/atomic import - Replace undefined BackendUnified with BackendAuto - Fix compilation issues for successful build
This commit is contained in:
parent
3927f05b62
commit
1cd38865f0
|
|
@ -4,7 +4,6 @@ import (
|
|||
"image"
|
||||
"image/color"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"fyne.io/fyne/v2/canvas"
|
||||
|
|
@ -66,7 +65,7 @@ func NewUnifiedPlayerAdapter(path string, width, height int, fps, duration float
|
|||
|
||||
// Create UnifiedPlayer with proper configuration
|
||||
config := Config{
|
||||
Backend: BackendUnified,
|
||||
Backend: BackendAuto, // Use auto for UnifiedPlayer
|
||||
WindowX: 0,
|
||||
WindowY: 0,
|
||||
WindowWidth: targetW,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user