From 2a69c16264d062048f4d22e7f3450388ff8c98c8 Mon Sep 17 00:00:00 2001 From: wood1986 <5212215+wood1986@users.noreply.github.com> Date: Wed, 21 Dec 2022 13:11:09 -0800 Subject: [PATCH] fix: ios build error due to missing push --- ios/Video/RCTVideo.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 77045613..769baba7 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -236,14 +236,14 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH @objc func setSrc(_ source:NSDictionary!) { DispatchQueue.global(qos: .default).async { - _source = VideoSource(source) - if (_source?.uri == nil || _source?.uri == "") { + self._source = VideoSource(source) + if (self._source?.uri == nil || self._source?.uri == "") { self._player?.replaceCurrentItem(with: nil) return; } - removePlayerLayer() - _playerObserver.player = nil - _playerObserver.playerItem = nil + self.removePlayerLayer() + self._playerObserver.player = nil + self._playerObserver.playerItem = nil // perform on next run loop, otherwise other passed react-props may not be set RCTVideoUtils.delay()