diff --git a/props_get.go b/props_get.go index 9e16063..75dc7af 100644 --- a/props_get.go +++ b/props_get.go @@ -57,6 +57,10 @@ func GetPause(socket string) (bool, error) { return GetProperty[bool](socket, "pause") } +func GetPlaylistPosition(socket string) (int, error) { + return GetProperty[int](socket, "playlist-pos") +} + func GetDuration(socket string) (time.Duration, error) { durationInSeconds, err := GetProperty[float64](socket, "duration") if err != nil {