         if supportDVR {
             var timeToSeek = timeInterval
 
-            if let seekStartTime = seekableTimeRanges.first?.timeRangeValue.start.seconds {
+            if let seekStartTime = dvrWindowStart {
                 timeToSeek = timeToSeek + seekStartTime
             }
 

        }
        return position
    }
}

    }

    open override var dvrPosition: Double {
        if let start = dvrWindowStart,
            let end = dvrWindowEnd,
            let position = player?.currentItem?.currentTime().seconds {
            var calculatedPosition = (position - start) * 100
            calculatedPosition = calculatedPosition / ((end - start) / 100)
