mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 05:28:16 +08:00
Merge 1.0.x branch (#8)
* 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
This commit is contained in:
54
core/events/playlists.go
Normal file
54
core/events/playlists.go
Normal file
@@ -0,0 +1,54 @@
|
||||
package events
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/model"
|
||||
)
|
||||
|
||||
const PlaylistManagerSetSystemCmd = "cmd.playlist.manager.set.system"
|
||||
|
||||
type PlaylistManagerSetSystemCmdEvent struct {
|
||||
PlaylistID string
|
||||
}
|
||||
|
||||
const PlaylistManagerSystemUpdate = "update.playlist.manager.system"
|
||||
|
||||
type PlaylistManagerSystemUpdateEvent struct {
|
||||
Info model.PlaylistInfo
|
||||
}
|
||||
|
||||
const PlaylistManagerRefreshCurrentCmd = "cmd.playlist.manager.refresh.current"
|
||||
|
||||
type PlaylistManagerRefreshCurrentCmdEvent struct {
|
||||
PlaylistID string
|
||||
}
|
||||
|
||||
const PlaylistManagerGetCurrentCmd = "cmd.playlist.manager.get.current"
|
||||
|
||||
type PlaylistManagerGetCurrentCmdEvent struct {
|
||||
PlaylistID string
|
||||
}
|
||||
|
||||
const PlaylistManagerCurrentUpdate = "update.playlist.manager.current"
|
||||
|
||||
type PlaylistManagerCurrentUpdateEvent struct {
|
||||
Medias []model.Media
|
||||
}
|
||||
|
||||
const PlaylistManagerInfoUpdate = "update.playlist.manager.info"
|
||||
|
||||
type PlaylistManagerInfoUpdateEvent struct {
|
||||
Playlists []model.PlaylistInfo
|
||||
}
|
||||
|
||||
const PlaylistManagerAddPlaylistCmd = "cmd.playlist.manager.add"
|
||||
|
||||
type PlaylistManagerAddPlaylistCmdEvent struct {
|
||||
Provider string
|
||||
URL string
|
||||
}
|
||||
|
||||
const PlaylistManagerRemovePlaylistCmd = "cmd.playlist.manager.remove"
|
||||
|
||||
type PlaylistManagerRemovePlaylistCmdEvent struct {
|
||||
PlaylistID string
|
||||
}
|
||||
Reference in New Issue
Block a user