From ee1217d95ecb13bc913599dff762018dd14b49c1 Mon Sep 17 00:00:00 2001 From: wood1986 <5212215+wood1986@users.noreply.github.com> Date: Sat, 17 Dec 2022 13:39:42 -0800 Subject: [PATCH] fix: fix the wrong merge conflict --- ios/Video/RCTVideo.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index df8c8838..8bcf5640 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -306,6 +306,13 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH self.setAutomaticallyWaitsToMinimizeStalling(self._automaticallyWaitsToMinimizeStalling) } + if self._adTagUrl != nil { + // Set up your content playhead and contentComplete callback. + self._contentPlayhead = IMAAVPlayerContentPlayhead(avPlayer: self._player!) + + self._imaAdsManager.setUpAdsLoader() + } + //Perform on next run loop, otherwise onVideoLoadStart is nil self.onVideoLoadStart?([ "src": [