Merge pull request #2970 from wood1986/fix-ios-build-error-2
fix: ios build error due to missing push
This commit is contained in:
commit
7631bd82a1
@ -236,14 +236,14 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
@objc
|
@objc
|
||||||
func setSrc(_ source:NSDictionary!) {
|
func setSrc(_ source:NSDictionary!) {
|
||||||
DispatchQueue.global(qos: .default).async {
|
DispatchQueue.global(qos: .default).async {
|
||||||
_source = VideoSource(source)
|
self._source = VideoSource(source)
|
||||||
if (_source?.uri == nil || _source?.uri == "") {
|
if (self._source?.uri == nil || self._source?.uri == "") {
|
||||||
self._player?.replaceCurrentItem(with: nil)
|
self._player?.replaceCurrentItem(with: nil)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
removePlayerLayer()
|
self.removePlayerLayer()
|
||||||
_playerObserver.player = nil
|
self._playerObserver.player = nil
|
||||||
_playerObserver.playerItem = nil
|
self._playerObserver.playerItem = nil
|
||||||
|
|
||||||
// perform on next run loop, otherwise other passed react-props may not be set
|
// perform on next run loop, otherwise other passed react-props may not be set
|
||||||
RCTVideoUtils.delay()
|
RCTVideoUtils.delay()
|
||||||
|
Loading…
Reference in New Issue
Block a user