diff --git a/VersaPlayer/Classes/Source/VersaPlayerControls/VersaPlayerControls.swift b/VersaPlayer/Classes/Source/VersaPlayerControls/VersaPlayerControls.swift index 4ce19bf..2f9d270 100755 --- a/VersaPlayer/Classes/Source/VersaPlayerControls/VersaPlayerControls.swift +++ b/VersaPlayer/Classes/Source/VersaPlayerControls/VersaPlayerControls.swift @@ -135,6 +135,10 @@ open class VersaPlayerControls: View { } public func setSeekbarSlider(start startValue: Double, end endValue: Double, at time: Double) { + let time = time.isNaN ? 0 : time + let startValue = startValue.isNaN ? 0 : startValue + let endValue = endValue.isNaN ? 0 : endValue + #if os(macOS) seekbarSlider?.minValue = startValue seekbarSlider?.maxValue = endValue