mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
20 lines
421 B
Go
20 lines
421 B
Go
package player
|
|
|
|
import (
|
|
"AynaLivePlayer/gui/gctx"
|
|
"fyne.io/fyne/v2"
|
|
"fyne.io/fyne/v2/container"
|
|
)
|
|
|
|
func CreateView() fyne.CanvasObject {
|
|
setupLyricViewer()
|
|
registerHandlers()
|
|
gctx.Context.OnMainWindowClosing(func() {
|
|
if playerWindow != nil {
|
|
gctx.Logger.Infof("closing player window")
|
|
go playerWindow.Close()
|
|
}
|
|
})
|
|
return container.NewBorder(nil, createPlayControllerV2(), nil, nil, createPlaylist())
|
|
}
|