delete logs
Some checks failed
Build iOS / Build iOS Example App (pull_request) Has been cancelled
Build iOS / Build iOS Example App With Ads (pull_request) Has been cancelled
Build iOS / Build iOS Example App With Caching (pull_request) Has been cancelled
Check CLang / CLang-Format (pull_request) Has been cancelled
Check iOS / Swift-Lint (pull_request) Has been cancelled
Check iOS / Swift-Format (pull_request) Has been cancelled

This commit is contained in:
Kat Huang 2024-08-08 18:38:31 -06:00
parent ac2162d6f9
commit 65f13c20c2

View File

@ -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])