kat-debug #2
@ -780,7 +780,6 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
let seekTime = CMTimeMakeWithSeconds(Float64(time.floatValue), preferredTimescale: Int32(NSEC_PER_SEC))
|
||||
let toleranceTime = CMTimeMakeWithSeconds(Float64(tolerance.floatValue), preferredTimescale: Int32(NSEC_PER_SEC))
|
||||
|
||||
// Print current time before starting seek
|
||||
let currentTimeBeforeSeek = CMTimeGetSeconds(item.currentTime())
|
||||
print("Before seek - Current time: \(currentTimeBeforeSeek), Seeking to: \(time)")
|
||||
|
||||
@ -798,7 +797,6 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
self._pendingSeek = false
|
||||
|
||||
guard finished else {
|
||||
print("Seek operation did not finish successfully")
|
||||
return
|
||||
}
|
||||
|
||||
@ -808,10 +806,8 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
}
|
||||
|
||||
let currentTimeAfterSeek = CMTimeGetSeconds(item.currentTime())
|
||||
print("After seek - Current time: \(currentTimeAfterSeek), Sought to: \(time)")
|
||||
|
||||
let newCurrentTime = NSNumber(value: Float(currentTimeAfterSeek))
|
||||
print("Seek completed, about to call onVideoSeekComplete")
|
||||
self.onVideoSeekComplete?(["currentTime": newCurrentTime,
|
||||
"seekTime": time,
|
||||
"target": self.reactTag])
|
||||
|
Loading…
Reference in New Issue
Block a user