mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-07 02:42:50 +08:00
* rewrite * update submodule * make width height configurable * update dependency * update * update file * update dep * fix basic config layout * update plugin management * more stuff * add blacklist * fix todo * fix windows gethandle * update windows update guide * update windows build guide * include go mod tidy in script * update todo * fix source session * fix text output * add plugin play duration control * fix id diange not working * update todo * update version number
24 lines
511 B
Go
24 lines
511 B
Go
package events
|
|
|
|
import "github.com/AynaLivePlayer/miaosic"
|
|
|
|
const PlayerLyricRequestCmd = "cmd.player.lyric.request"
|
|
|
|
type PlayerLyricRequestCmdEvent struct {
|
|
}
|
|
|
|
const PlayerLyricReload = "update.player.lyric.reload"
|
|
|
|
type PlayerLyricReloadEvent struct {
|
|
Lyrics miaosic.Lyrics
|
|
}
|
|
|
|
const PlayerLyricPosUpdate = "update.player.lyric.pos"
|
|
|
|
type PlayerLyricPosUpdateEvent struct {
|
|
Time float64
|
|
CurrentIndex int // -1 means no lyric
|
|
CurrentLine miaosic.LyricLine
|
|
Total int // total lyric count
|
|
}
|