fix(ios): ensure we don't disable tracks when not necessary (causes black screen) (#4130)
This commit is contained in:
@@ -613,6 +613,10 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
||||
textTracks: self._textTracks
|
||||
)
|
||||
|
||||
if validTextTracks.isEmpty {
|
||||
DebugLog("Strange state, not valid textTrack")
|
||||
}
|
||||
|
||||
if validTextTracks.count != self._textTracks.count {
|
||||
self.setTextTracks(validTextTracks)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user