1 Commits

Author SHA1 Message Date
f413f97824 added GetPlaylistPosition 2025-06-28 14:18:56 +02:00

View File

@ -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 {