added SetPlaylistPosition
This commit is contained in:
		@ -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 {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user