GetPause implemented
This commit is contained in:
@ -53,8 +53,8 @@ func GetPlaylist(socket string) ([]PlaylistEntry, error) {
|
|||||||
return GetProperty[[]PlaylistEntry](socket, "playlist")
|
return GetProperty[[]PlaylistEntry](socket, "playlist")
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetPlaylistPosition(socket string, index int) error {
|
func GetPause(socket string) (bool, error) {
|
||||||
return SetProperty(socket, "playlist-pos", index)
|
return GetProperty[bool](socket, "pause")
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDuration(socket string) (time.Duration, error) {
|
func GetDuration(socket string) (time.Duration, error) {
|
||||||
|
@ -21,3 +21,7 @@ func SetPercentPos(socket string, percentPos float64) error {
|
|||||||
func SetVolume(socket string, volume float64) error {
|
func SetVolume(socket string, volume float64) error {
|
||||||
return SetProperty[float64](socket, "volume", volume)
|
return SetProperty[float64](socket, "volume", volume)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetPlaylistPosition(socket string, index int) error {
|
||||||
|
return SetProperty(socket, "playlist-pos", index)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user