fix: fix build on xcode 17 beta
This commit is contained in:
parent
3f48c64364
commit
a18953e701
@ -261,8 +261,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
// MARK: - Player and source
|
// MARK: - Player and source
|
||||||
@objc
|
@objc
|
||||||
func setSrc(_ source:NSDictionary!) {
|
func setSrc(_ source:NSDictionary!) {
|
||||||
DispatchQueue.global(qos: .default).async { [weak self] in
|
let dispatchClosure = {
|
||||||
guard let self = self else {return}
|
|
||||||
self._source = VideoSource(source)
|
self._source = VideoSource(source)
|
||||||
if (self._source?.uri == nil || self._source?.uri == "") {
|
if (self._source?.uri == nil || self._source?.uri == "") {
|
||||||
self._player?.replaceCurrentItem(with: nil)
|
self._player?.replaceCurrentItem(with: nil)
|
||||||
@ -356,6 +355,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
}.catch{_ in }
|
}.catch{_ in }
|
||||||
self._videoLoadStarted = true
|
self._videoLoadStarted = true
|
||||||
}
|
}
|
||||||
|
DispatchQueue.global(qos: .default).async(execute: dispatchClosure)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc
|
@objc
|
||||||
|
Loading…
Reference in New Issue
Block a user