added GetPlaylistPosition
This commit is contained in:
		@ -57,6 +57,10 @@ func GetPause(socket string) (bool, error) {
 | 
				
			|||||||
	return GetProperty[bool](socket, "pause")
 | 
						return GetProperty[bool](socket, "pause")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func GetPlaylistPosition(socket string) (int, error) {
 | 
				
			||||||
 | 
						return GetProperty[int](socket, "playlist-pos")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func GetDuration(socket string) (time.Duration, error) {
 | 
					func GetDuration(socket string) (time.Duration, error) {
 | 
				
			||||||
	durationInSeconds, err := GetProperty[float64](socket, "duration")
 | 
						durationInSeconds, err := GetProperty[float64](socket, "duration")
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user