Initial commit

This commit is contained in:
Aynakeya
2022-06-21 13:02:22 -07:00
commit 9f75839ebc
161 changed files with 18766 additions and 0 deletions

38
player/event.go Normal file
View File

@@ -0,0 +1,38 @@
package player
import (
"AynaLivePlayer/event"
)
const (
EventPlay event.EventId = "player.play"
EventPlaylistPreInsert event.EventId = "playlist.insert.pre"
EventPlaylistInsert event.EventId = "playlist.insert.after"
EventPlaylistUpdate event.EventId = "playlist.update"
EventLyricUpdate event.EventId = "lyric.update"
EventLyricReload event.EventId = "lyric.reload"
)
type PlaylistInsertEvent struct {
Playlist *Playlist
Index int
Media *Media
}
type PlaylistUpdateEvent struct {
Playlist *Playlist
}
type PlayEvent struct {
Media *Media
}
type LyricUpdateEvent struct {
Lyrics *Lyric
Time float64
Lyric *LyricLine
}
type LyricReloadEvent struct {
Lyrics *Lyric
}