GetPause implemented

This commit is contained in:
2025-06-28 14:14:55 +02:00
parent 3e68bbda29
commit 5eb15eb7a5
2 changed files with 6 additions and 2 deletions

View File

@ -53,8 +53,8 @@ func GetPlaylist(socket string) ([]PlaylistEntry, error) {
return GetProperty[[]PlaylistEntry](socket, "playlist")
}
func SetPlaylistPosition(socket string, index int) error {
return SetProperty(socket, "playlist-pos", index)
func GetPause(socket string) (bool, error) {
return GetProperty[bool](socket, "pause")
}
func GetDuration(socket string) (time.Duration, error) {