added GetLoopFile and GetLoopPlaylist
This commit is contained in:
20
props_get.go
20
props_get.go
@ -9,11 +9,11 @@ func GetDisplayNames(socket string) ([]string, error) {
|
|||||||
return GetProperty[[]string](socket, "display-names")
|
return GetProperty[[]string](socket, "display-names")
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsFullscreen(socket string) (bool, error) {
|
func GetFullscreen(socket string) (bool, error) {
|
||||||
return GetProperty[bool](socket, "fullscreen")
|
return GetProperty[bool](socket, "fullscreen")
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsPaused(socket string) (bool, error) {
|
func GetPaused(socket string) (bool, error) {
|
||||||
return GetProperty[bool](socket, "pause")
|
return GetProperty[bool](socket, "pause")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ func GetTimeRemaining(socket string) (time.Duration, error) {
|
|||||||
return time.Duration(durationInSeconds * float64(time.Second)), nil
|
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")
|
return GetProperty[bool](socket, "seeking")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,18 +145,26 @@ func GetChapterList(socket string) ([]Chapter, error) {
|
|||||||
return GetProperty[[]Chapter](socket, "chapter-list")
|
return GetProperty[[]Chapter](socket, "chapter-list")
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsSeekable(socket string) (bool, error) {
|
func GetSeekable(socket string) (bool, error) {
|
||||||
return GetProperty[bool](socket, "seekable")
|
return GetProperty[bool](socket, "seekable")
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsPartiallySeekable(socket string) (bool, error) {
|
func GetPartiallySeekable(socket string) (bool, error) {
|
||||||
return GetProperty[bool](socket, "partially-seekable")
|
return GetProperty[bool](socket, "partially-seekable")
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsPlaybackAborted(socket string) (bool, error) {
|
func GetPlaybackAborted(socket string) (bool, error) {
|
||||||
return GetProperty[bool](socket, "playback-abort")
|
return GetProperty[bool](socket, "playback-abort")
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetPropertyList(socket string) ([]string, error) {
|
func GetPropertyList(socket string) ([]string, error) {
|
||||||
return GetProperty[[]string](socket, "property-list")
|
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")
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user