added GetLoopFile and GetLoopPlaylist

This commit is contained in:
2025-08-30 14:16:13 +02:00
parent e425b08ef8
commit 86c9dc0cc5

View File

@ -9,11 +9,11 @@ func GetDisplayNames(socket string) ([]string, error) {
return GetProperty[[]string](socket, "display-names")
}
func IsFullscreen(socket string) (bool, error) {
func GetFullscreen(socket string) (bool, error) {
return GetProperty[bool](socket, "fullscreen")
}
func IsPaused(socket string) (bool, error) {
func GetPaused(socket string) (bool, error) {
return GetProperty[bool](socket, "pause")
}
@ -101,7 +101,7 @@ func GetTimeRemaining(socket string) (time.Duration, error) {
return time.Duration(durationInSeconds * float64(time.Second)), nil
}
func IsSeeking(socket string) (bool, error) {
func GetSeeking(socket string) (bool, error) {
return GetProperty[bool](socket, "seeking")
}
@ -145,18 +145,26 @@ func GetChapterList(socket string) ([]Chapter, error) {
return GetProperty[[]Chapter](socket, "chapter-list")
}
func IsSeekable(socket string) (bool, error) {
func GetSeekable(socket string) (bool, error) {
return GetProperty[bool](socket, "seekable")
}
func IsPartiallySeekable(socket string) (bool, error) {
func GetPartiallySeekable(socket string) (bool, error) {
return GetProperty[bool](socket, "partially-seekable")
}
func IsPlaybackAborted(socket string) (bool, error) {
func GetPlaybackAborted(socket string) (bool, error) {
return GetProperty[bool](socket, "playback-abort")
}
func GetPropertyList(socket string) ([]string, error) {
return GetProperty[[]string](socket, "property-list")
}
func GetLoopFile(socket string) (bool, error) {
return GetProperty[bool](socket, "loop-file")
}
func GetLoopPlaylist(socket string) (bool, error) {
return GetProperty[bool](socket, "loop-playlist")
}