add Logout, OnLogout to server manager and hook up OnLogout callbacks

This commit is contained in:
Drew Weymouth
2023-02-12 15:47:15 -08:00
parent c3fcf5955e
commit 198b84b9c1
5 changed files with 76 additions and 0 deletions
+8
View File
@@ -159,6 +159,14 @@ func (p *Player) Stop() error {
return err
}
// Clears the play queue, except for the currently playing file.
func (p *Player) ClearPlayQueue() error {
if p.mpv == nil {
return ErrUnitialized
}
return p.mpv.Command([]string{"playlist-clear"})
}
// Seeks within the currently playing track.
// See MPV seek command documentation for more details.
func (p *Player) Seek(target string, mode SeekMode) error {