From 4905cdf98ee1a98721353ed2abd010af4be858b7 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Wed, 7 Aug 2024 17:34:25 -0600 Subject: [PATCH] Add logs --- ios/Video/RCTVideo.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 4d16679a..bb879c21 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -114,7 +114,11 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH @objc var onVideoProgress: RCTDirectEventBlock? @objc var onVideoBandwidthUpdate: RCTDirectEventBlock? @objc var onVideoSeek: RCTDirectEventBlock? - @objc var onVideoSeekComplete: RCTDirectEventBlock? + @objc var onVideoSeekComplete: RCTDirectEventBlock? { + didSet { + print("onVideoSeekComplete set: \(onVideoSeekComplete != nil)") + } +} @objc var onVideoEnd: RCTDirectEventBlock? @objc var onTimedMetadata: RCTDirectEventBlock? @objc var onVideoAudioBecomingNoisy: RCTDirectEventBlock? @@ -787,7 +791,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH self.onVideoSeek?(["currentTime": currentTime, "seekTime": time, "target": self.reactTag]) - + print("Seek completed, about to call onVideoSeekComplete") self.onVideoSeekComplete?(["currentTime": currentTime, "seekTime": time, "target": self.reactTag])