Compare commits
No commits in common. "main" and "v0.0.5" have entirely different histories.
@ -58,15 +58,6 @@ func GetDuration(socket string) (time.Duration, error) {
|
|||||||
return time.Duration(durationInSeconds * float64(time.Second)), nil
|
return time.Duration(durationInSeconds * float64(time.Second)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDemuxerCacheTime(socket string) (time.Duration, error) {
|
|
||||||
cacheInSeconds, err := GetProperty[float64](socket, "demuxer-cache-time")
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return time.Duration(cacheInSeconds * float64(time.Second)), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetPercentPos(socket string) (float64, error) {
|
func GetPercentPos(socket string) (float64, error) {
|
||||||
return GetProperty[float64](socket, "percent-pos")
|
return GetProperty[float64](socket, "percent-pos")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user