Externally loaded text tracks not loading properly (#3461)

* fix text tracks

* keep map

* use where

* update change log

* fix build error
This commit is contained in:
Bryan
2024-01-14 22:31:22 -08:00
committed by GitHub
parent 045f5fa008
commit 8f1bdb7c36
3 changed files with 3 additions and 2 deletions

View File

@@ -1206,7 +1206,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
"orientation": orientation,
],
"audioTracks": audioTracks,
"textTracks": textTracks.map(\.json),
"textTracks": self._textTracks?.compactMap { $0.json } ?? textTracks.map(\.json),
"target": self.reactTag as Any])
}
}