added SetPlaylistPosition

This commit is contained in:
2025-06-28 13:47:16 +02:00
parent bca0e0bf3a
commit 3e68bbda29

View File

@ -53,6 +53,10 @@ 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 GetDuration(socket string) (time.Duration, error) {
durationInSeconds, err := GetProperty[float64](socket, "duration")
if err != nil {