mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
try fix windows try fix windows fix again add windows debug build try ucrt fix ucrt env use different mpv build aaaa bbb disable vlc for now test build mpv only update vlc version for windows add go.sum
50 lines
1.2 KiB
Go
50 lines
1.2 KiB
Go
package internal
|
|
|
|
import (
|
|
"AynaLivePlayer/internal/controller"
|
|
"AynaLivePlayer/internal/liveroom"
|
|
"AynaLivePlayer/internal/player"
|
|
"AynaLivePlayer/internal/playlist"
|
|
"AynaLivePlayer/internal/plugins"
|
|
"AynaLivePlayer/internal/source"
|
|
"AynaLivePlayer/internal/sysmediacontrol"
|
|
"AynaLivePlayer/internal/updater"
|
|
"AynaLivePlayer/pkg/config"
|
|
"AynaLivePlayer/plugin/diange"
|
|
"AynaLivePlayer/plugin/durationmgmt"
|
|
"AynaLivePlayer/plugin/qiege"
|
|
"AynaLivePlayer/plugin/sourcelogin"
|
|
"AynaLivePlayer/plugin/textinfo"
|
|
"AynaLivePlayer/plugin/wshub"
|
|
"AynaLivePlayer/plugin/yinliang"
|
|
)
|
|
|
|
func Initialize() {
|
|
player.SetupPlayer()
|
|
source.Initialize()
|
|
playlist.Initialize()
|
|
controller.Initialize()
|
|
liveroom.Initialize()
|
|
plugins.Initialize()
|
|
plugins.LoadPlugins(
|
|
diange.NewDiange(), qiege.NewQiege(), yinliang.NewYinliang(), sourcelogin.NewSourceLogin(),
|
|
textinfo.NewTextInfo(),
|
|
durationmgmt.NewMaxDuration(),
|
|
wshub.NewWsHub(),
|
|
)
|
|
updater.Initialize()
|
|
if config.General.EnableSMC {
|
|
sysmediacontrol.InitSystemMediaControl()
|
|
}
|
|
}
|
|
|
|
func Stop() {
|
|
if config.General.EnableSMC {
|
|
sysmediacontrol.Destroy()
|
|
}
|
|
liveroom.StopAndSave()
|
|
playlist.Close()
|
|
plugins.ClosePlugins()
|
|
player.StopPlayer()
|
|
}
|