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